What's the simplest way to find Node id's for the files and folders in my repository?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2019 09:13 PM
New to alfresco, I've been trying to make some simple http requests to the Alfresco REST API. I've been trying to make requests involving the /nodes service, but I can't seem to locate any node id's. I see that there is a "Node Browser" under the admin tools but I can't seem to figure out how to use it or get what I'm looking for. Any help is much appreciated!
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2019 07:49 AM
Can you post a example of the rest service you want to use (endpoint,parameters,ecc)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2019 09:16 AM
Probably the easiest ways for checking / getting the uuids of some nodes are via
i) details page of a given document (it is part of the url)
ii) via node browser (in Share admin and also in Alfresco Admin Console)
iii) via cmis workbench (download from apache chemistry page).
Regards.
--C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2019 10:26 AM
I followed your directions regarding the first option you gave and got a url along the lines of : site/learning-alfresco/document-details?nodeRef=workspace://SpacesStore/fd537bd3-e18a-4611-bdca-d04a98372128
Is what follows the "nodeRef=" the node id? Is this what I would enter as the nodeId when using the services found under the nodes section of the REST API here: https://api-explorer.alfresco.com/api-explorer/#/nodes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2019 12:55 PM
Hi Gerard, the last part of "workspace://SpacesStore/fd537bd3-e18a-4611-bdca-d04a98372128" is the uuid of the node and that it's what you need to use with the Rest Api of Alfresco.
This http GET below must be the right one , try out on your alfresco machine
https://127.0.0.1:8443/alfres
co/api/-default-/public/alfresco/versions/1/nodes/fd537bd3-e18a-4611-bdca-d04a98372128?include=allowableOperations%2Cassociation%2CisLink%2CisLocked%2Cpath%2Cpermissions%2Cproperties%2CaspectNames
