Hi,
I have some doubts regarding the Document Management Specification
1 - In the document Introduction it is stated that "...
The query capabilities provided by this service will serve links (location references) as well as retrieve
documents as binary objects..." but the response to the following endpoints.
Requests:
Retrieve Document
GET /documentManagement/document/42
List Document
GET /documentManagement/document?type="invoice"&relatedParty.id=42
Responses
"attachment": [{"attachment": [{ "size": "123.0", "sizeUnit": "bytes", "mimeType": "application/pdf", "URL": "/ documentManagement / document /document.pdf "}],
In the response we have the attachment and this represents the information of the binary object and it's location, is their way to actually retrieve the binary object with listDocument or retrieveDocument REST calls (as it seems described in the introduction), or this always returns the binary object information and location?
2 - Using CreateMethod Rest API we need to send three mandatory fields size, sizeUnit, mimeType. The URL is only mandatory on the response, this means that we only send the document location URL on the Request only when we have a remote file, do you confirm this? But the thing is how do is supposed to work when we have a local binary object to upload?
Any clarifying about the questions please contact me.
Thanks in advance.
Best Regards,
------------------------------
Luís Prates
Celfocus
------------------------------