Skip to content

Returns a list of all content entries.

GET
/api/content

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Responses

Success
JSON
[
{
"id": 0,
"name": "string",
"title": "string",
"body": "string",
"lastModified": "string"
}
]
Authorization
api_key
cURL
curl -X GET \
'http://localhost/api/content'

Samples

cURL
curl -X GET http://localhost/api/content
JavaScript
fetch("http://localhost/api/content")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/content");
Python
import requests
response = requests.get("http://localhost/api/content")
print(response.json())