Pages ¶
pages¶
GET /api/v1/pages/{slug}¶
Get Page
Description
Get a Page by its slug.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
HTTPBearer |
header | string | N/A | No | JWT Bearer token |
refreshed-token |
header | No | |||
slug |
path | string | No | ||
token |
cookie | string | No |
Responses
{
"slug": "string",
"published": true,
"application": {
"id": "string",
"name": "string",
"is_private": true
},
"url": "string"
}
Schema of the response body
{
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"published": {
"type": "boolean",
"title": "Published"
},
"application": {
"$ref": "#/components/schemas/PageApplicationInfo"
},
"url": {
"type": "string",
"title": "Url",
"description": "The public URL where this page is served.",
"readOnly": true
}
},
"type": "object",
"required": [
"slug",
"published",
"application",
"url"
],
"title": "PageResponse",
"description": "Response body for Page details."
}
{
"detail": [
{
"loc": [
null
],
"msg": "string",
"type": "string"
}
]
}
Schema of the response body
{
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
}
DELETE /api/v1/pages/{slug}¶
Delete Page
Description
Delete a Page and its assets.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
HTTPBearer |
header | string | N/A | No | JWT Bearer token |
refreshed-token |
header | No | |||
slug |
path | string | No | ||
token |
cookie | string | No |
Responses
Schema of the response body
{
"detail": [
{
"loc": [
null
],
"msg": "string",
"type": "string"
}
]
}
Schema of the response body
{
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
}
POST /api/v1/pages¶
Create Page
Description
Create a new Page for an Application.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
HTTPBearer |
header | string | N/A | No | JWT Bearer token |
refreshed-token |
header | No | |||
token |
cookie | string | No |
Request body
{
"application_id": "string",
"slug": "string"
}
Schema of the request body
{
"properties": {
"application_id": {
"type": "string",
"title": "Application Id"
},
"slug": {
"type": "string",
"title": "Slug"
}
},
"type": "object",
"required": [
"application_id",
"slug"
],
"title": "Body_create_page_api_v1_pages_post"
}
Responses
{
"slug": "string",
"published": true,
"application": {
"id": "string",
"name": "string",
"is_private": true
},
"url": "string"
}
Schema of the response body
{
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"published": {
"type": "boolean",
"title": "Published"
},
"application": {
"$ref": "#/components/schemas/PageApplicationInfo"
},
"url": {
"type": "string",
"title": "Url",
"description": "The public URL where this page is served.",
"readOnly": true
}
},
"type": "object",
"required": [
"slug",
"published",
"application",
"url"
],
"title": "PageResponse",
"description": "Response body for Page details."
}
{
"detail": [
{
"loc": [
null
],
"msg": "string",
"type": "string"
}
]
}
Schema of the response body
{
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
}
PUT /api/v1/pages/{slug}/deploy¶
Deploy Page
Description
Deploy files to a Page. This replaces all existing files.
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
HTTPBearer |
header | string | N/A | No | JWT Bearer token |
refreshed-token |
header | No | |||
slug |
path | string | No | ||
token |
cookie | string | No |
Request body
{
"files": [
"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQ="
]
}
Schema of the request body
{
"properties": {
"files": {
"items": {
"type": "string",
"format": "binary"
},
"type": "array",
"title": "Files"
}
},
"type": "object",
"required": [
"files"
],
"title": "Body_deploy_page_api_v1_pages__slug__deploy_put"
}
Responses
{
"slug": "string",
"published": true,
"application": {
"id": "string",
"name": "string",
"is_private": true
},
"url": "string"
}
Schema of the response body
{
"properties": {
"slug": {
"type": "string",
"title": "Slug"
},
"published": {
"type": "boolean",
"title": "Published"
},
"application": {
"$ref": "#/components/schemas/PageApplicationInfo"
},
"url": {
"type": "string",
"title": "Url",
"description": "The public URL where this page is served.",
"readOnly": true
}
},
"type": "object",
"required": [
"slug",
"published",
"application",
"url"
],
"title": "PageResponse",
"description": "Response body for Page details."
}
{
"detail": [
{
"loc": [
null
],
"msg": "string",
"type": "string"
}
]
}
Schema of the response body
{
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
}
Schemas¶
Body_create_page_api_v1_pages_post¶
| Name | Type | Description |
|---|---|---|
application_id |
string | |
slug |
string |
Body_deploy_page_api_v1_pages__slug__deploy_put¶
| Name | Type | Description |
|---|---|---|
files |
Array<string(binary)> |
HTTPValidationError¶
| Name | Type | Description |
|---|---|---|
detail |
Array<ValidationError> |
PageApplicationInfo¶
| Name | Type | Description |
|---|---|---|
id |
string | |
is_private |
boolean | |
name |
string |
PageResponse¶
| Name | Type | Description |
|---|---|---|
application |
PageApplicationInfo | |
published |
boolean | |
slug |
string | |
url |
string | The public URL where this page is served. |
ValidationError¶
| Name | Type | Description |
|---|---|---|
loc |
Array<> | |
msg |
string | |
type |
string |
Security schemes¶
| Name | Type | Scheme | Description |
|---|---|---|---|
| HTTPBearer | http | bearer | |
| HTTPBasic | http | basic |