As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
I am using CMIS 1.1 with browser binding. How do I use browser binging to get the document content and its data?
I tried the below query but I don't get any error and I doubt it executes the below query.
http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser?cmisaction=query&statement=select * from cmis:document where object_id='e4d42c21-22ab-4c28-ada0-4237ba339b30'
I have a site by name test-stite and I have some documents within the documentLibrary.
How do I use CMIS browser binding to get the document content by node reference within my test-site.?
GET /alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=e4d42c21-22ab-4c28-ada0-4237ba339b30&cmisselector=content
For getting the content stream:
http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=workspace://SpacesStore/e4d42c21-22ab-4c28-ada0-4237ba339b30&cmisselector=content
For getting the object:
http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=workspace://SpacesStore/e4d42c21-22ab-4c28-ada0-4237ba339b30&cmisselector=object
For getting the property:
http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=workspace://SpacesStore/e4d42c21-22ab-4c28-ada0-4237ba339b30&cmisselector=properties
You may use alf_ticket appended in your request to avoid adding the basic authentication details for each time:
http://localhost:8080/alfresco/s/api/login?u=admin&pw=admin
You would get ticket in response
<?xml version="1.0" encoding="UTF-8"?>
<ticket>TICKET_c98c483f4ebd30f980d43b55e6a8e8c641a9c00b</ticket>
Now you can have your request as
http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root?objectId=workspace://SpacesStore/e4d42c21-22ab-4c28-ada0-4237ba339b30&cmisselector=content&alf_ticket=TICKET_c98c483f4ebd30f980d43b55e6a8e8c641a9c00b
and so on for the object and properties.