API by router
Website pages
List Pages
AuthorizationBearer <token>
In: header
Path Parameters
config_idConfig Id
Format
uuidHeader Parameters
X-Api-Key?X-Api-Key
Response Body
curl -X GET "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages" \ -H "X-Api-Key: string"[
{
"content_html": "string",
"created_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"metadata_json": {},
"slug": "string",
"sort_order": 0,
"status": "draft",
"title": "string",
"updated_at": "2019-08-24T14:15:22Z",
"website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"
}
]{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Create Page
AuthorizationBearer <token>
In: header
Path Parameters
config_idConfig Id
Format
uuidHeader Parameters
X-Api-Key?X-Api-Key
content_html?Content Html
Default
""metadata_json?Metadata Json
Default
{}Empty Object
slugSlug
Match
^[a-z0-9][a-z0-9\-]*$Length
length <= 200sort_order?Sort Order
Default
0status?Status
Default
"draft"Match
^(draft|published|archived)$titleTitle
Length
length <= 300Response Body
curl -X POST "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages" \ -H "X-Api-Key: string" \ -H "Content-Type: application/json" \ -d '{ "slug": "string", "title": "string" }'{
"content_html": "string",
"created_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"metadata_json": {},
"slug": "string",
"sort_order": 0,
"status": "draft",
"title": "string",
"updated_at": "2019-08-24T14:15:22Z",
"website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Get Page
AuthorizationBearer <token>
In: header
Path Parameters
config_idConfig Id
Format
uuidslugSlug
Header Parameters
X-Api-Key?X-Api-Key
Response Body
curl -X GET "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string" \ -H "X-Api-Key: string"{
"content_html": "string",
"created_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"metadata_json": {},
"slug": "string",
"sort_order": 0,
"status": "draft",
"title": "string",
"updated_at": "2019-08-24T14:15:22Z",
"website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Delete Page
AuthorizationBearer <token>
In: header
Path Parameters
config_idConfig Id
Format
uuidslugSlug
Header Parameters
X-Api-Key?X-Api-Key
Response Body
curl -X DELETE "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string" \ -H "X-Api-Key: string"Empty
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Update Page
AuthorizationBearer <token>
In: header
Path Parameters
config_idConfig Id
Format
uuidslugSlug
Header Parameters
X-Api-Key?X-Api-Key
content_html?Content Html
metadata_json?Metadata Json
sort_order?Sort Order
status?Status
title?Title
Response Body
curl -X PUT "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/pages/string" \ -H "X-Api-Key: string" \ -H "Content-Type: application/json" \ -d '{}'{
"content_html": "string",
"created_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"metadata_json": {},
"slug": "string",
"sort_order": 0,
"status": "draft",
"title": "string",
"updated_at": "2019-08-24T14:15:22Z",
"website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}