08-06-2018 10:06 AM
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&state... * 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.?
08-06-2018 12:51 PM
08-06-2018 10:34 PM
For getting the content stream:
For getting the object:
For getting the property:
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=workspac...&alf_ticket=TICKET_c98c483f4ebd30f980d43b55e6a8e8c641a9c00b
and so on for the object and properties.
Explore our Alfresco products with the links below. Use labels to filter content by product module.