Doc file is not downloading from Download API

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

Doc file is not downloading from Download API

Hi all,

I have to download a doc file using download API provide by out of the box. So for that I am passing node-id of particular file which i need to downlaod in API-Create a new download.

It is calling this link: http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/downloads . From that I am getting download-id and I am passing it to another API-Get a download.

Link: http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/downloads/{downloadId} . In response body status is showing "Done" but nothing is downloading for it.

Status and body is showing expected results but that doc file is still not downloading. 

Can anyone help in this?

Thanks,

Dhrumil

 

1 Reply
Highlighted
Advanced

Re: Doc file is not downloading from Download API

To download the file you also need to call following api where  nodeId is returned by API-Get .

http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{nodeId}/content