AnsweredAssumed Answered

How to obtain document name with REST call

Question asked by spilby on Sep 5, 2014
Latest reply on Sep 9, 2014 by spilby
I'm downloading a content from alfresco with RESTFull calls. First I obtain the ticket and then I call the DownloadServlet alfresco/download/attach/workspace/SpacesStore/GUID/documentName.

The problem is that I don't know previously the documentName. If I put an invented name (for example, "document") the content is download with this name, but I want the real name that is stored in alfresco.

The unique way is calling before a "GET /alfresco/service/api/metadata?nodeRef=workspace://SpacesStore/GUID" service to obtain the metadata and the name property? Or there are a best option to know the name of the document to download it with this?

Thank you very much!