cancel
Showing results for 
Search instead for 
Did you mean: 

API for getting download url or nodeRef

shibu
Champ in-the-making
Champ in-the-making
Is there any REST API provided by Alfresco-4.2.c to get download URL of a document saved in documentLibrary of a site?
I need ticket based authentication with that API.
Please tell me the REST API and format of specifying the path of the file.
4 REPLIES 4

ddraper
World-Class Innovator
World-Class Innovator
The API for downloading content is: /api/node/content{property}/{store_type}/{store_id}/{id}

shibu
Champ in-the-making
Champ in-the-making
I dont have the nodeRef ({id}) of the particular document.
Is there any REST API for getting the nodeRef?
I have only the site name, directory path and file name.

mitpatoliya
Star Collaborator
Star Collaborator
Yes, Shibu you can use the api suggested by Dave.
If you have document you can find its nodeid or noderef and then you can create this url accordingly.
There is also direct download url associated with each noderef you might want to look at it.
It is of this format.
http://localhost:8080/alfresco/d/d/workspace/SpacesStore/be8177a0-50a4-4755-a2e9-f27a449129b67/other...
You can append the ticket to this url to provide authorization.

shibu
Champ in-the-making
Champ in-the-making
Which is the REST API provided by Alfresco to get the nodeRef of the particular document?