RESTful API
Introduction
API Base URL
https://api.cmft.io/v1/Basic Query Structure
https://api.cmft.io/v1/<repoName>/<endpoint>?key=<apiKey>curl 'https://api.cmft.io/v1/<repoName>/<endpoint>' \
-H 'Authorization: <apiKey>'window.fetch('https://api.cmft.io/v1/<repoName>/<endpoint>', {
method: 'get',
headers: {
'Content-Type': 'application/json',
'Authorization': '<apiKey>'
}
})
.then(function (response) { return response.json() })
.then(function (data) {
console.log(data)
})Example Document Structure
{
"fields": {
"title": "Roses are red"
},
"meta": {
"id": "314159265358979323",
"contentType": "poem",
"repository": "314159265358979323",
"revision": 1,
"tags": [],
"createdAt": "2018-01-01T00:00:00.000Z",
"updatedAt": "2018-01-01T00:00:00.000Z"
}
}API Keys
Creating API Keys
Editing
Revoking or Deleting
Types of Keys
Usage
Last updated