cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS - Rest - json

joss
Champ in-the-making
Champ in-the-making
Hi All,

I'm starting with Alfresco and testing some integration options.

Using the rest interface, it seems to always return XML.

I tried setting the format using hints in the query (http://wiki.alfresco.com/wiki/Web_Scripts#Content_Negotiation_and_Response_Formats) and in the request but to no avail.

From the documentation I would have thought that CMIS/Rest was supporting json.

Any idea?

Thanks,
Joss
2 REPLIES 2

fmui
Champ in-the-making
Champ in-the-making
Hi Joss,

The CMIS 1.0 specification defines a Web Services binding and an AtomPub binding – both XML, no JSON.
There will be a JSON binding in CMIS 1.1 and Alfresco 4.0 will provide a preview implementation of that.

Florian

kaynezhang
World-Class Innovator
World-Class Innovator
After 4.2.d is alfresco support  CMIS 1.1 browser binding,The CMIS Browser Binding is based upon JSON. But I don't think you want to access it directly,you'd better use some client library such as opencmis.
Alfresco webscript api supprt document format such as XML, JSON.The result is encoded in which format depending on how you invoke the webscript.

if you want it to return json format ,you can add format argument to your url, for example

http://localhost:8080/alfresco/service/api/path/Workspace/SpacesStore/Company%20Home/children?format...

Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.