05-19-2019 06: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!
05-20-2019 04:49 AM
Can you post a example of the rest service you want to use (endpoint,parameters,ecc)?
05-20-2019 06: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.
05-20-2019 07: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
05-20-2019 09:55 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.