12-13-2018 01:42 AM
I am currently using V1 upload URL {URL} /alfresco/api/-default-/public/alfresco/versions/1/nodes/-root-/children and it returns nodeId.
However, for downloading the document I would need extra information about node such as store_type and store-id.
Can I always assume that store-type would always be workspace and the store-id to be SpacesStore? I googled about it, but without success.
Thanks in advance
12-13-2018 02:33 AM
I don't know what download URL you are using, but it sure can't be from the v1 ReST API. You do not need store_type or store_id for the access to the node content aka "download". Only if you were to use the legacy APIs, like the download servlet, would you need to have those extra parameters.
12-13-2018 04:09 AM
We are currently using GET /alfresco/service/api/node/content{property}/{store_type}/{store_id}/{id}?a={attach?}
For the above URL, can I assume that store-type would always be workspace and the store-id to be SpacesStore?
12-13-2018 03:16 PM
Yes, if you are downloading content from the spaces store, which is most likely, then your assumptions are correct.
12-13-2018 04:36 AM
I am little confused about the version I am currently using. If I try to use the URL as you specified, how alfresco would know where it saved? Will it get information from the document by id such as store type and store_id, and then get the content of the file? If you know its implementation and explain it here, I would be thankful
Explore our Alfresco products with the links below. Use labels to filter content by product module.