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
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.
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?
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
Yes, if you are downloading content from the spaces store, which is most likely, then your assumptions are correct.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.