CMIS
Any is compatible with a part of the CMIS APIs.
First step
-
CMIS is available through AtomPub at the following address:
<any url>/cmis/atom11 -
You must authenticate with HTTP Basic authentication using a user having the "REST API" role.
-
The visibility of the contents and the other permissions are based on the authenticated user, as in Any.
Supported actions
- List the applications, the rooms, the folders, the contents and the versions
- Query the contents
- Create a content
- Create a new content version
- Update the properties of a content
- Check-out, check-in
- Delete a content
How to list the applications
-
The CMIS model is a hierarchy of repositories, folders and documents.
-
The first level of the CMIS model is the repository. In Any, a repository corresponds to an application.
-
To list the applications:
<any url>/cmis/atom11
Rooms
-
The next levels of the CMIS model are a hierarchy of folders.
-
At the root of the repository, the list of your rooms appears as CMIS folders.
-
To list the rooms of the "demo" application:
<any url>/cmis/atom11/app_demo/children?id=any
Contents and folders of a room
-
The children of a CMIS folder corresponding to a room can be contents or folders.
-
Each folder or content is uniquely identified by the "cmis:objectId" property.
-
To list the documents and folders of a room:
<any url>/cmis/atom11/app_demo/children?id=demo_room__room0002
Query the contents
-
You can query the contents based on their metadata.
-
In the query, you must use the metadata names defined in Any.
-
To query the contents:
<any url>/cmis/atom11/app_demo/query -
Example query:
SELECT * FROM cmis:document WHERE extended.country = 'FR'
Differences with the actions performed in Any
- When creating a content through CMIS, the "Import content" flow is not applied.