There are several endpoints across the API that expect a node id as part of the URL, this is OK if the client knows the node id, but there are some scenarios where it might not be known, for example when starting to navigate the folder hierarchy.
For this scenario the API supports the following node id aliases:
- -root-: corresponds to the node id for the /Company Home folder.
- -shared-: corresponds to the node id for the /Company Home/Shared folder.
- -my-: corresponds to the node id for the current user’s home folder (i.e. /Company Home/User Homes/{userid}).
The http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/-root-/children request shows how you can list the contents (children) of the /Company Home folder without knowing its node id.