Retrieve the Files CMIS API service document 

To update resources made available through the Atom APIs, retrieve the service document for the application.

The Files application makes available CMIS service documents for each file-sharing identity in the system. Some resources can appear in multiple repositories.

Table 1. CMIS API request details

Method Resource URI Description
GET Service document /basic/cmis/my/servicedoc Retrieves the CMIS service document for the user whose credentials are used to authenticate the request. This repository contains files and folders that are explicitly owned by the user authenticated to make the request.
GET Service document /basic/cmis/user/{userId}/servicedoc Retrieves the CMIS service document for the user whose identifier is specified by the path parameter userId. This repository contains files and folders that are explicitly owned by that user.
GET Service document /basic/cmis/community/{communityId}/owned/servicedoc Retrieves the CMIS service document for the community whose identifier is specified by the path parameter communityId. This repository contains files that are explicitly owned by that community.
GET Service document /basic/cmis/community/{communityId}/shared/servicedoc Retrieves the CMIS service document for the community whose identifier is specified by the path parameter communityId. This repository contains files that are shared with that community by other users in the system.


Example

To retrieve the service document for the user whose credentials are used to authenticate the request, send the following HTTP request:

> GET /basic/cmis/my/servicedoc HTTP/1.1
> Authorization: Basic xxx
> Host: enterprise.example.com:9087
> Accept: */*

The HTTP response would look as follows:

< HTTP/1.1 200 OK
< X-LConn-Auth: true
< Content-Type: application/atomserv+xml; charset=UTF-8
< Content-Language: en-US
< Set-Cookie: LtpaToken2=xxx
< Set-Cookie: LtpaToken=xxx
< Set-Cookie: JSESSIONID=xxx
< Transfer-Encoding: chunked
< Date: Fri, 06 Nov 2009 14:56:28 GMT
< Server: WAS/6.1
< Expires: Thu, 01 Dec 1994 16:00:00 GMT
< Cache-Control: private, must-revalidate, max-age=0, 
  no-cache=set-cookie

The service document for Files is returned by the server. For information about the CMIS service document, see the AtomPub Service Document (Repository) specification.


Parent topic

Files CMIS API


   

 

});

+

Search Tips   |   Advanced Search