Documentation

Read API

Read API helps you to create a static schema in CMS and deliver the content on request.
  • Create a website and resource
  • Choose Read API while creating resource
  • Create an API Key
  • Make request to the new API from your website. HTTP Method should be GET

Examples on using Read API

var requestOptions = {
method: 'GET'
};
fetch("http://cms-url.com?api_key=your-api-key", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var settings = {
"url": "http://cms-url.com?api_key=your-api-key",
"method": "GET"
};
$.ajax(settings).done(function (response) {
console.log(response);
});
curl --location --request GET 'http://cms-url.com?api_key=your-api-key'

Submit API

Submit API are helpful when you need to store some information from your website. This is useful when you have a contact form or subscribe form.
  • Create a website and resource
  • Choose Submit API while creating resource
  • Create an API Key
  • Make request to the new API from your website.
  • HTTP Method should be POST
  • Content-Type should be application/x-www-form-urlencoded

Examples on using Submit API

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/x-www-form-urlencoded");
var urlencoded = new URLSearchParams();
urlencoded.append("name", "John");
urlencoded.append("age", "30");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: urlencoded
};
fetch("http://cms-url.com?api_key=your-api-key", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
var settings = {
"url": "http://cms-url.com?api_key=your-api-key",
"method": "POST",
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"name": "John",
"age": "30"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
curl --location --request POST 'http://cms-url.com?api_key=your-api-key' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'name=John' --data-urlencode 'age=30'