Using files CMIS APIs with Media Gallery
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 15, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Provides details on how to use the Files CMIS APIs to retrieve and perform actions on Media Gallery content.

The Media Gallery application of IBM® Connections Communities enables teams to share photos and videos using a shared community repository of files. The Media Gallery uses the Files CMIS API to add, read, and modify files in a community’s files repository. All files added to the Media Gallery are stored in the community’s files repository and are associated with a CMIS object type.

Related tasks
 

GET

/files/{auth}/cmis/community/{communityId}/owned/servicedoc

Retrieving community files service document.
GET

/files/{auth}/cmis/repository/{repositoryId}/folderc/snx:files

Retrieving community files root feed.
GET

/files/{auth}/cmis/repository/{repositoryId}/query 

Getting photos and videos feed.
GET

/files/{auth}/cmis/repository/{repositoryId}/object/{objectId}

Retrieving a photo or video.
GET

/files/{auth}/cmis/repository/{repositoryId}/type/{objectId}

Retrieving CMIS Object Type properties.
GET

/files/{auth}/opensocial/people/{userId||@me}/@self

Retrieving nonce and user information.
 

See doc

Adding a photo or video.
POST

/files/{auth}/cmis/repository/{repositoryId}/object/{objectId} 

Editing photo or video properties.
POST

/files/form/cmis/repository/{repositoryId}/versions/{versionId}

Deleting or moving to trash a photo or video.
POST

/files/{auth}/cmis/repository/{repositoryId}/mobject/{objectId}

Replacing a Photo or Video.
 

See doc

CMIS Logical types Explanation for Media Gallery.