Comment on page
Endpoints
get
https://api.cmft.io
/v1/<repoName>/documents
All Documents
get
https://api.cmft.io
/v1/<repoName>/documents/<documentId>
Single Document
get
https://api.comft.io
/v1/<repoName>/alias/<myAliasName>
Single Document Alias
get
https://api.cmft.io
/v1/<repoName>/collections/<collectionName>
Document Collections
Document Collections work almost the same as the All Documents endpoint. The key difference is, that collections come a predefined set of documents, matching certain characteristics. These filters can be set in the Comfortable Web Application.
For more info on Collections, see the following page:
get
https://api.cmft.io
/v1/<repoName>/assets/<assetId>
Single Asset
When querying documents, add
embedAssets=true
as URL parameter or as a query option to include assets by default. This eliminates the need to perform single asset queries and reduces the number of API calls.
See Example
Last modified 4yr ago