cancel
Showing results for 
Search instead for 
Did you mean: 

What's the simplest way to find Node id's for the files and folders in my repository?

dgr72
Champ in-the-making
Champ in-the-making

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!

4 REPLIES 4

4535992
Star Collaborator
Star Collaborator

Can you post a example of the rest service you want to use (endpoint,parameters,ecc)?

cesarista
World-Class Innovator
World-Class Innovator

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. 

dgr72
Champ in-the-making
Champ in-the-making

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

4535992
Star Collaborator
Star Collaborator

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