6767 lines
172 KiB
JSON
6767 lines
172 KiB
JSON
{
|
|||
|
|
"openapi": "3.1.0",
|
||
|
|
"info": {
|
||
|
|
"title": "Pigway Frame Flow API",
|
||
|
|
"version": "0.1.0"
|
||
|
|
},
|
||
|
|
"paths": {
|
||
|
|
"/health": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Health"
|
||
|
|
],
|
||
|
|
"summary": "Health",
|
||
|
|
"operationId": "health_health_get",
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Health"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "Bad Request",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"description": "Unauthorized",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"description": "Forbidden",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"description": "Not Found",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"description": "Conflict",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"description": "Content Too Large",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"description": "Unprocessable Content",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"description": "Too Many Requests",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"description": "Internal Server Error",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"description": "Bad Gateway",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"description": "Service Unavailable",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/ready": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Health"
|
||
|
|
],
|
||
|
|
"summary": "Ready",
|
||
|
|
"operationId": "ready_ready_get",
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Readiness"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "Bad Request",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"description": "Unauthorized",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"description": "Forbidden",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"description": "Not Found",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"description": "Conflict",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"description": "Content Too Large",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"description": "Unprocessable Content",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"description": "Too Many Requests",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"description": "Internal Server Error",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"description": "Bad Gateway",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"description": "Service Unavailable",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Readiness"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/version": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"System"
|
||
|
|
],
|
||
|
|
"summary": "Version",
|
||
|
|
"operationId": "version_api_v1_version_get",
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Version"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "Bad Request",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"description": "Unauthorized",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"description": "Forbidden",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"description": "Not Found",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"description": "Conflict",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"description": "Content Too Large",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"description": "Unprocessable Content",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"description": "Too Many Requests",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"description": "Internal Server Error",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"description": "Bad Gateway",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"description": "Service Unavailable",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/devices": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Devices"
|
||
|
|
],
|
||
|
|
"summary": "Devices",
|
||
|
|
"operationId": "devices_api_v1_devices_get",
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/Device"
|
||
|
|
},
|
||
|
|
"type": "array",
|
||
|
|
"title": "Response Devices Api V1 Devices Get"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "Bad Request",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"description": "Unauthorized",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"description": "Forbidden",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"description": "Not Found",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"description": "Conflict",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"description": "Content Too Large",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"description": "Unprocessable Content",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"description": "Too Many Requests",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"description": "Internal Server Error",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"description": "Bad Gateway",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"description": "Service Unavailable",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/devices/{device_id}": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Devices"
|
||
|
|
],
|
||
|
|
"summary": "Device",
|
||
|
|
"operationId": "device_api_v1_devices__device_id__get",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "device_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "refresh",
|
||
|
|
"in": "query",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"type": "boolean",
|
||
|
|
"default": false,
|
||
|
|
"title": "Refresh"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Device"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/devices/{device_id}/images": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Images"
|
||
|
|
],
|
||
|
|
"summary": "Images",
|
||
|
|
"operationId": "images_api_v1_devices__device_id__images_get",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "device_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/GalleryImage"
|
||
|
|
},
|
||
|
|
"title": "Response Images Api V1 Devices Device Id Images Get"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/devices/{device_id}/images/{image_id}/file": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Images"
|
||
|
|
],
|
||
|
|
"summary": "Image File",
|
||
|
|
"operationId": "image_file_api_v1_devices__device_id__images__image_id__file_get",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "device_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "image_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "integer",
|
||
|
|
"title": "Image Id"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "thumbnail",
|
||
|
|
"in": "query",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"type": "boolean",
|
||
|
|
"default": false,
|
||
|
|
"title": "Thumbnail"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {}
|
||
|
|
},
|
||
|
|
"image/jpeg": {
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"format": "binary"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/display": {
|
||
|
|
"post": {
|
||
|
|
"summary": "Display",
|
||
|
|
"operationId": "display_api_display_post",
|
||
|
|
"deprecated": true,
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "idempotency-key",
|
||
|
|
"in": "header",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Idempotency-Key"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/DisplayRequest"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"202": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Accepted"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/display": {
|
||
|
|
"post": {
|
||
|
|
"tags": [
|
||
|
|
"Display"
|
||
|
|
],
|
||
|
|
"summary": "Display",
|
||
|
|
"operationId": "display_api_v1_display_post",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "idempotency-key",
|
||
|
|
"in": "header",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Idempotency-Key"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/DisplayRequest"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"202": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Accepted"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/devices/{device_id}/display": {
|
||
|
|
"post": {
|
||
|
|
"tags": [
|
||
|
|
"Display"
|
||
|
|
],
|
||
|
|
"summary": "Device Display",
|
||
|
|
"operationId": "device_display_api_v1_devices__device_id__display_post",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "device_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "idempotency-key",
|
||
|
|
"in": "header",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Idempotency-Key"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/DisplayRequest"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"202": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Accepted"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/render": {
|
||
|
|
"post": {
|
||
|
|
"tags": [
|
||
|
|
"Render"
|
||
|
|
],
|
||
|
|
"summary": "Render",
|
||
|
|
"operationId": "render_api_v1_render_post",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "idempotency-key",
|
||
|
|
"in": "header",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Idempotency-Key"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/TemplateContent"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"202": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Accepted"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/devices/{device_id}/upload": {
|
||
|
|
"post": {
|
||
|
|
"tags": [
|
||
|
|
"Images"
|
||
|
|
],
|
||
|
|
"summary": "Upload",
|
||
|
|
"operationId": "upload_api_v1_devices__device_id__upload_post",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "device_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "display_now",
|
||
|
|
"in": "query",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"type": "boolean",
|
||
|
|
"default": false,
|
||
|
|
"title": "Display Now"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "idempotency-key",
|
||
|
|
"in": "header",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Idempotency-Key"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/ImageContent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/URLContent"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Payload"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"202": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Accepted"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/preview": {
|
||
|
|
"post": {
|
||
|
|
"tags": [
|
||
|
|
"Render"
|
||
|
|
],
|
||
|
|
"summary": "Preview",
|
||
|
|
"operationId": "preview_api_v1_preview_post",
|
||
|
|
"requestBody": {
|
||
|
|
"content": {
|
||
|
|
"multipart/form-data": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Body_preview_api_v1_preview_post"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": true
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Asset"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "Bad Request",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"description": "Unauthorized",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"description": "Forbidden",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"description": "Not Found",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"description": "Conflict",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"description": "Content Too Large",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"description": "Unprocessable Content",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"description": "Too Many Requests",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"description": "Internal Server Error",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"description": "Bad Gateway",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"description": "Service Unavailable",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/assets": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Images"
|
||
|
|
],
|
||
|
|
"summary": "List Assets",
|
||
|
|
"operationId": "list_assets_api_v1_assets_get",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "limit",
|
||
|
|
"in": "query",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"type": "integer",
|
||
|
|
"maximum": 200,
|
||
|
|
"minimum": 1,
|
||
|
|
"default": 100,
|
||
|
|
"title": "Limit"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/Asset"
|
||
|
|
},
|
||
|
|
"title": "Response List Assets Api V1 Assets Get"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/assets/{asset_id}": {
|
||
|
|
"delete": {
|
||
|
|
"tags": [
|
||
|
|
"Images"
|
||
|
|
],
|
||
|
|
"summary": "Delete Asset",
|
||
|
|
"operationId": "delete_asset_api_v1_assets__asset_id__delete",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "asset_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Asset Id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"204": {
|
||
|
|
"description": "Successful Response"
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Images"
|
||
|
|
],
|
||
|
|
"summary": "Asset File",
|
||
|
|
"operationId": "asset_file_api_v1_assets__asset_id__get",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "asset_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Asset Id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {}
|
||
|
|
},
|
||
|
|
"image/jpeg": {
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"format": "binary"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/devices/{device_id}/images/{image_id}": {
|
||
|
|
"delete": {
|
||
|
|
"tags": [
|
||
|
|
"Images"
|
||
|
|
],
|
||
|
|
"summary": "Delete Image",
|
||
|
|
"operationId": "delete_image_api_v1_devices__device_id__images__image_id__delete",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "device_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "image_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "integer",
|
||
|
|
"title": "Image Id"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "confirm_current",
|
||
|
|
"in": "query",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"type": "boolean",
|
||
|
|
"default": false,
|
||
|
|
"title": "Confirm Current"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "idempotency-key",
|
||
|
|
"in": "header",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Idempotency-Key"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"202": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Accepted"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/devices/{device_id}/restore": {
|
||
|
|
"post": {
|
||
|
|
"tags": [
|
||
|
|
"Display"
|
||
|
|
],
|
||
|
|
"summary": "Restore",
|
||
|
|
"operationId": "restore_api_v1_devices__device_id__restore_post",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "device_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "idempotency-key",
|
||
|
|
"in": "header",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Idempotency-Key"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"202": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Accepted"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/operations": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Operations"
|
||
|
|
],
|
||
|
|
"summary": "Operations",
|
||
|
|
"operationId": "operations_api_v1_operations_get",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "limit",
|
||
|
|
"in": "query",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"type": "integer",
|
||
|
|
"maximum": 200,
|
||
|
|
"minimum": 1,
|
||
|
|
"default": 50,
|
||
|
|
"title": "Limit"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/Operation"
|
||
|
|
},
|
||
|
|
"title": "Response Operations Api V1 Operations Get"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/operations/{operation_id}": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Operations"
|
||
|
|
],
|
||
|
|
"summary": "Operation",
|
||
|
|
"operationId": "operation_api_v1_operations__operation_id__get",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "operation_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Operation Id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Operation"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/operations/{operation_id}/reconcile": {
|
||
|
|
"post": {
|
||
|
|
"tags": [
|
||
|
|
"Operations"
|
||
|
|
],
|
||
|
|
"summary": "Reconcile",
|
||
|
|
"operationId": "reconcile_api_v1_operations__operation_id__reconcile_post",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "operation_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Operation Id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ReconcileRequest"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Reconciliation"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/templates": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Templates"
|
||
|
|
],
|
||
|
|
"summary": "Templates",
|
||
|
|
"operationId": "templates_api_v1_templates_get",
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/TemplateInfo"
|
||
|
|
},
|
||
|
|
"type": "array",
|
||
|
|
"title": "Response Templates Api V1 Templates Get"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "Bad Request",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"description": "Unauthorized",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"description": "Forbidden",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"description": "Not Found",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"description": "Conflict",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"description": "Content Too Large",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"description": "Unprocessable Content",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"description": "Too Many Requests",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"description": "Internal Server Error",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"description": "Bad Gateway",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"description": "Service Unavailable",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/templates/{template_id}": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Templates"
|
||
|
|
],
|
||
|
|
"summary": "Template",
|
||
|
|
"operationId": "template_api_v1_templates__template_id__get",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "template_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Template Id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/TemplateInfo"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/templates/{template_id}/config": {
|
||
|
|
"put": {
|
||
|
|
"tags": [
|
||
|
|
"Templates"
|
||
|
|
],
|
||
|
|
"summary": "Template Config",
|
||
|
|
"operationId": "template_config_api_v1_templates__template_id__config_put",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "template_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Template Id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/TemplateConfig"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/TemplateConfig"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/jobs": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Automation"
|
||
|
|
],
|
||
|
|
"summary": "Jobs",
|
||
|
|
"operationId": "jobs_api_v1_jobs_get",
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/Job"
|
||
|
|
},
|
||
|
|
"type": "array",
|
||
|
|
"title": "Response Jobs Api V1 Jobs Get"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "Bad Request",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"description": "Unauthorized",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"description": "Forbidden",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"description": "Not Found",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"description": "Conflict",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"description": "Content Too Large",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"description": "Unprocessable Content",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"description": "Too Many Requests",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"description": "Internal Server Error",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"description": "Bad Gateway",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"description": "Service Unavailable",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"post": {
|
||
|
|
"tags": [
|
||
|
|
"Automation"
|
||
|
|
],
|
||
|
|
"summary": "Create Job",
|
||
|
|
"operationId": "create_job_api_v1_jobs_post",
|
||
|
|
"requestBody": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/JobInput"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": true
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"201": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Job"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "Bad Request",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"description": "Unauthorized",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"description": "Forbidden",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"description": "Not Found",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"description": "Conflict",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"description": "Content Too Large",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"description": "Unprocessable Content",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"description": "Too Many Requests",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"description": "Internal Server Error",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"description": "Bad Gateway",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"description": "Service Unavailable",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/jobs/{job_id}": {
|
||
|
|
"put": {
|
||
|
|
"tags": [
|
||
|
|
"Automation"
|
||
|
|
],
|
||
|
|
"summary": "Update Job",
|
||
|
|
"operationId": "update_job_api_v1_jobs__job_id__put",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "job_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Job Id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/JobInput"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Job"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"delete": {
|
||
|
|
"tags": [
|
||
|
|
"Automation"
|
||
|
|
],
|
||
|
|
"summary": "Delete Job",
|
||
|
|
"operationId": "delete_job_api_v1_jobs__job_id__delete",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "job_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Job Id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"204": {
|
||
|
|
"description": "Successful Response"
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/playlists": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Playlists"
|
||
|
|
],
|
||
|
|
"summary": "Playlists",
|
||
|
|
"operationId": "playlists_api_v1_playlists_get",
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/Playlist"
|
||
|
|
},
|
||
|
|
"type": "array",
|
||
|
|
"title": "Response Playlists Api V1 Playlists Get"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "Bad Request",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"description": "Unauthorized",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"description": "Forbidden",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"description": "Not Found",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"description": "Conflict",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"description": "Content Too Large",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"description": "Unprocessable Content",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"description": "Too Many Requests",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"description": "Internal Server Error",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"description": "Bad Gateway",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"description": "Service Unavailable",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"post": {
|
||
|
|
"tags": [
|
||
|
|
"Playlists"
|
||
|
|
],
|
||
|
|
"summary": "Create Playlist",
|
||
|
|
"operationId": "create_playlist_api_v1_playlists_post",
|
||
|
|
"requestBody": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/PlaylistInput"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": true
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"201": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Playlist"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "Bad Request",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"description": "Unauthorized",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"description": "Forbidden",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"description": "Not Found",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"description": "Conflict",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"description": "Content Too Large",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"description": "Unprocessable Content",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"description": "Too Many Requests",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"description": "Internal Server Error",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"description": "Bad Gateway",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"description": "Service Unavailable",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/playlists/{playlist_id}": {
|
||
|
|
"put": {
|
||
|
|
"tags": [
|
||
|
|
"Playlists"
|
||
|
|
],
|
||
|
|
"summary": "Update Playlist",
|
||
|
|
"operationId": "update_playlist_api_v1_playlists__playlist_id__put",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "playlist_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Playlist Id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"requestBody": {
|
||
|
|
"required": true,
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/PlaylistInput"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Playlist"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"delete": {
|
||
|
|
"tags": [
|
||
|
|
"Playlists"
|
||
|
|
],
|
||
|
|
"summary": "Delete Playlist",
|
||
|
|
"operationId": "delete_playlist_api_v1_playlists__playlist_id__delete",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "playlist_id",
|
||
|
|
"in": "path",
|
||
|
|
"required": true,
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Playlist Id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"204": {
|
||
|
|
"description": "Successful Response"
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/history": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"History"
|
||
|
|
],
|
||
|
|
"summary": "History",
|
||
|
|
"operationId": "history_api_v1_history_get",
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "limit",
|
||
|
|
"in": "query",
|
||
|
|
"required": false,
|
||
|
|
"schema": {
|
||
|
|
"type": "integer",
|
||
|
|
"maximum": 200,
|
||
|
|
"minimum": 1,
|
||
|
|
"default": 100,
|
||
|
|
"title": "Limit"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/History"
|
||
|
|
},
|
||
|
|
"title": "Response History Api V1 History Get"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Request"
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unauthorized"
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Forbidden"
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Not Found"
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Conflict"
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Content Too Large"
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Unprocessable Content"
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Too Many Requests"
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Internal Server Error"
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Bad Gateway"
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"description": "Service Unavailable"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/settings": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Settings"
|
||
|
|
],
|
||
|
|
"summary": "Settings View",
|
||
|
|
"operationId": "settings_view_api_v1_settings_get",
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Successful Response",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/SettingsView"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"400": {
|
||
|
|
"description": "Bad Request",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"401": {
|
||
|
|
"description": "Unauthorized",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"403": {
|
||
|
|
"description": "Forbidden",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"404": {
|
||
|
|
"description": "Not Found",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"409": {
|
||
|
|
"description": "Conflict",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"413": {
|
||
|
|
"description": "Content Too Large",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"422": {
|
||
|
|
"description": "Unprocessable Content",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"429": {
|
||
|
|
"description": "Too Many Requests",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"500": {
|
||
|
|
"description": "Internal Server Error",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"502": {
|
||
|
|
"description": "Bad Gateway",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"503": {
|
||
|
|
"description": "Service Unavailable",
|
||
|
|
"content": {
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/ErrorResponse"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"security": [
|
||
|
|
{
|
||
|
|
"HTTPBearer": []
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"components": {
|
||
|
|
"schemas": {
|
||
|
|
"Accepted": {
|
||
|
|
"properties": {
|
||
|
|
"operation_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Operation Id"
|
||
|
|
},
|
||
|
|
"job_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Job Id"
|
||
|
|
},
|
||
|
|
"status": {
|
||
|
|
"type": "string",
|
||
|
|
"const": "accepted",
|
||
|
|
"title": "Status",
|
||
|
|
"default": "accepted"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"operation_id",
|
||
|
|
"job_id"
|
||
|
|
],
|
||
|
|
"title": "Accepted"
|
||
|
|
},
|
||
|
|
"Asset": {
|
||
|
|
"properties": {
|
||
|
|
"asset_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Asset Id"
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Name"
|
||
|
|
},
|
||
|
|
"url": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Url"
|
||
|
|
},
|
||
|
|
"created_at": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Created At"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"asset_id",
|
||
|
|
"name",
|
||
|
|
"url",
|
||
|
|
"created_at"
|
||
|
|
],
|
||
|
|
"title": "Asset"
|
||
|
|
},
|
||
|
|
"Body_preview_api_v1_preview_post": {
|
||
|
|
"properties": {
|
||
|
|
"file": {
|
||
|
|
"type": "string",
|
||
|
|
"contentMediaType": "application/octet-stream",
|
||
|
|
"title": "File"
|
||
|
|
},
|
||
|
|
"fit": {
|
||
|
|
"$ref": "#/components/schemas/Fit",
|
||
|
|
"default": "contain"
|
||
|
|
},
|
||
|
|
"profile": {
|
||
|
|
"$ref": "#/components/schemas/Profile",
|
||
|
|
"default": "color"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"file"
|
||
|
|
],
|
||
|
|
"title": "Body_preview_api_v1_preview_post"
|
||
|
|
},
|
||
|
|
"Capabilities": {
|
||
|
|
"properties": {
|
||
|
|
"upload": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Upload",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"gallery": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Gallery",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"delete": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Delete",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"switch": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Switch",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"remote_refresh": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Remote Refresh",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"battery": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Battery",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"color": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Color",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"cloud_upload_without_display": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Cloud Upload Without Display",
|
||
|
|
"default": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"title": "Capabilities"
|
||
|
|
},
|
||
|
|
"CurrentContent": {
|
||
|
|
"properties": {
|
||
|
|
"type": {
|
||
|
|
"type": "string",
|
||
|
|
"const": "image",
|
||
|
|
"title": "Type",
|
||
|
|
"default": "image"
|
||
|
|
},
|
||
|
|
"id": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Id"
|
||
|
|
},
|
||
|
|
"cover_id": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Cover Id"
|
||
|
|
},
|
||
|
|
"synced": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Synced"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"id",
|
||
|
|
"cover_id",
|
||
|
|
"synced"
|
||
|
|
],
|
||
|
|
"title": "CurrentContent"
|
||
|
|
},
|
||
|
|
"Device": {
|
||
|
|
"properties": {
|
||
|
|
"id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Id"
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Name"
|
||
|
|
},
|
||
|
|
"driver": {
|
||
|
|
"type": "string",
|
||
|
|
"const": "kokonna",
|
||
|
|
"title": "Driver",
|
||
|
|
"default": "kokonna"
|
||
|
|
},
|
||
|
|
"status": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"online",
|
||
|
|
"offline"
|
||
|
|
],
|
||
|
|
"title": "Status"
|
||
|
|
},
|
||
|
|
"model": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Model"
|
||
|
|
},
|
||
|
|
"model_code": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Model Code"
|
||
|
|
},
|
||
|
|
"firmware": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Firmware"
|
||
|
|
},
|
||
|
|
"display": {
|
||
|
|
"$ref": "#/components/schemas/DisplayGeometry"
|
||
|
|
},
|
||
|
|
"power": {
|
||
|
|
"$ref": "#/components/schemas/Power"
|
||
|
|
},
|
||
|
|
"current_content": {
|
||
|
|
"$ref": "#/components/schemas/CurrentContent"
|
||
|
|
},
|
||
|
|
"last_seen_at": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Last Seen At"
|
||
|
|
},
|
||
|
|
"timezone": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Timezone"
|
||
|
|
},
|
||
|
|
"capabilities": {
|
||
|
|
"$ref": "#/components/schemas/Capabilities"
|
||
|
|
},
|
||
|
|
"slideshow": {
|
||
|
|
"additionalProperties": true,
|
||
|
|
"type": "object",
|
||
|
|
"title": "Slideshow"
|
||
|
|
},
|
||
|
|
"storage_used_bytes": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Storage Used Bytes"
|
||
|
|
},
|
||
|
|
"model_verified": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Model Verified",
|
||
|
|
"default": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"id",
|
||
|
|
"name",
|
||
|
|
"status",
|
||
|
|
"model",
|
||
|
|
"model_code",
|
||
|
|
"firmware",
|
||
|
|
"display",
|
||
|
|
"power",
|
||
|
|
"current_content",
|
||
|
|
"last_seen_at",
|
||
|
|
"timezone"
|
||
|
|
],
|
||
|
|
"title": "Device"
|
||
|
|
},
|
||
|
|
"DisplayGeometry": {
|
||
|
|
"properties": {
|
||
|
|
"width": {
|
||
|
|
"type": "integer",
|
||
|
|
"title": "Width"
|
||
|
|
},
|
||
|
|
"height": {
|
||
|
|
"type": "integer",
|
||
|
|
"title": "Height"
|
||
|
|
},
|
||
|
|
"rotation": {
|
||
|
|
"type": "integer",
|
||
|
|
"title": "Rotation"
|
||
|
|
},
|
||
|
|
"color_mode": {
|
||
|
|
"$ref": "#/components/schemas/Profile",
|
||
|
|
"default": "color"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"width",
|
||
|
|
"height",
|
||
|
|
"rotation"
|
||
|
|
],
|
||
|
|
"title": "DisplayGeometry"
|
||
|
|
},
|
||
|
|
"DisplayRequest": {
|
||
|
|
"properties": {
|
||
|
|
"device_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id",
|
||
|
|
"default": "living-room"
|
||
|
|
},
|
||
|
|
"content": {
|
||
|
|
"oneOf": [
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/ImageContent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/URLContent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/TemplateContent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/FutureContent"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Content",
|
||
|
|
"discriminator": {
|
||
|
|
"propertyName": "type",
|
||
|
|
"mapping": {
|
||
|
|
"html": "#/components/schemas/FutureContent",
|
||
|
|
"image": "#/components/schemas/ImageContent",
|
||
|
|
"image_url": "#/components/schemas/URLContent",
|
||
|
|
"markdown": "#/components/schemas/FutureContent",
|
||
|
|
"template": "#/components/schemas/TemplateContent"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"options": {
|
||
|
|
"$ref": "#/components/schemas/Options"
|
||
|
|
},
|
||
|
|
"source": {
|
||
|
|
"$ref": "#/components/schemas/Source"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"content"
|
||
|
|
],
|
||
|
|
"title": "DisplayRequest"
|
||
|
|
},
|
||
|
|
"ErrorBody": {
|
||
|
|
"properties": {
|
||
|
|
"code": {
|
||
|
|
"$ref": "#/components/schemas/ErrorCode"
|
||
|
|
},
|
||
|
|
"message": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Message"
|
||
|
|
},
|
||
|
|
"request_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Request Id"
|
||
|
|
},
|
||
|
|
"details": {
|
||
|
|
"additionalProperties": true,
|
||
|
|
"type": "object",
|
||
|
|
"title": "Details"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"code",
|
||
|
|
"message",
|
||
|
|
"request_id"
|
||
|
|
],
|
||
|
|
"title": "ErrorBody"
|
||
|
|
},
|
||
|
|
"ErrorCode": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"INVALID_REQUEST",
|
||
|
|
"UNAUTHORIZED",
|
||
|
|
"FORBIDDEN",
|
||
|
|
"DEVICE_NOT_FOUND",
|
||
|
|
"DEVICE_OFFLINE",
|
||
|
|
"UNSUPPORTED_CAPABILITY",
|
||
|
|
"RENDER_FAILED",
|
||
|
|
"UPLOAD_FAILED",
|
||
|
|
"WRITE_RESULT_UNKNOWN",
|
||
|
|
"RATE_LIMITED",
|
||
|
|
"INTERNAL_ERROR",
|
||
|
|
"CLOUD_UNAVAILABLE",
|
||
|
|
"NOT_FOUND",
|
||
|
|
"CONFLICT",
|
||
|
|
"CONFIG_REQUIRED",
|
||
|
|
"WRITE_DISABLED"
|
||
|
|
],
|
||
|
|
"title": "ErrorCode"
|
||
|
|
},
|
||
|
|
"ErrorResponse": {
|
||
|
|
"properties": {
|
||
|
|
"error": {
|
||
|
|
"$ref": "#/components/schemas/ErrorBody"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"error"
|
||
|
|
],
|
||
|
|
"title": "ErrorResponse"
|
||
|
|
},
|
||
|
|
"Fit": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"contain",
|
||
|
|
"cover",
|
||
|
|
"smart"
|
||
|
|
],
|
||
|
|
"title": "Fit"
|
||
|
|
},
|
||
|
|
"FutureContent": {
|
||
|
|
"properties": {
|
||
|
|
"type": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"html",
|
||
|
|
"markdown"
|
||
|
|
],
|
||
|
|
"title": "Type"
|
||
|
|
},
|
||
|
|
"data": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Data",
|
||
|
|
"default": ""
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"type"
|
||
|
|
],
|
||
|
|
"title": "FutureContent"
|
||
|
|
},
|
||
|
|
"GalleryImage": {
|
||
|
|
"properties": {
|
||
|
|
"width": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Width"
|
||
|
|
},
|
||
|
|
"height": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Height"
|
||
|
|
},
|
||
|
|
"size_bytes": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Size Bytes"
|
||
|
|
},
|
||
|
|
"media_type": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Media Type"
|
||
|
|
},
|
||
|
|
"image_id": {
|
||
|
|
"type": "integer",
|
||
|
|
"title": "Image Id"
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Name"
|
||
|
|
},
|
||
|
|
"created_at": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Created At"
|
||
|
|
},
|
||
|
|
"current": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Current"
|
||
|
|
},
|
||
|
|
"url": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Url"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"image_id",
|
||
|
|
"name",
|
||
|
|
"created_at",
|
||
|
|
"current",
|
||
|
|
"url"
|
||
|
|
],
|
||
|
|
"title": "GalleryImage"
|
||
|
|
},
|
||
|
|
"Health": {
|
||
|
|
"properties": {
|
||
|
|
"status": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Status"
|
||
|
|
},
|
||
|
|
"version": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Version",
|
||
|
|
"default": "0.1.0"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"status"
|
||
|
|
],
|
||
|
|
"title": "Health"
|
||
|
|
},
|
||
|
|
"History": {
|
||
|
|
"properties": {
|
||
|
|
"id": {
|
||
|
|
"type": "integer",
|
||
|
|
"title": "Id"
|
||
|
|
},
|
||
|
|
"client_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Client Id"
|
||
|
|
},
|
||
|
|
"request_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Request Id"
|
||
|
|
},
|
||
|
|
"operation_id": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Operation Id"
|
||
|
|
},
|
||
|
|
"device_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id"
|
||
|
|
},
|
||
|
|
"action": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Action"
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Result"
|
||
|
|
},
|
||
|
|
"timestamp": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Timestamp"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"id",
|
||
|
|
"client_id",
|
||
|
|
"request_id",
|
||
|
|
"operation_id",
|
||
|
|
"device_id",
|
||
|
|
"action",
|
||
|
|
"result",
|
||
|
|
"timestamp"
|
||
|
|
],
|
||
|
|
"title": "History"
|
||
|
|
},
|
||
|
|
"ImageContent": {
|
||
|
|
"properties": {
|
||
|
|
"type": {
|
||
|
|
"type": "string",
|
||
|
|
"const": "image",
|
||
|
|
"title": "Type"
|
||
|
|
},
|
||
|
|
"image_id": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "integer",
|
||
|
|
"exclusiveMinimum": 0.0
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Image Id"
|
||
|
|
},
|
||
|
|
"image_name": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string",
|
||
|
|
"maxLength": 120,
|
||
|
|
"minLength": 1
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Image Name"
|
||
|
|
},
|
||
|
|
"asset_id": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string",
|
||
|
|
"pattern": "^[a-f0-9]{32}$"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Asset Id"
|
||
|
|
},
|
||
|
|
"base64": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string",
|
||
|
|
"maxLength": 28000000
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Base64"
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"type": "string",
|
||
|
|
"maxLength": 120,
|
||
|
|
"minLength": 1,
|
||
|
|
"title": "Name",
|
||
|
|
"default": "image.jpg"
|
||
|
|
},
|
||
|
|
"fit": {
|
||
|
|
"$ref": "#/components/schemas/Fit",
|
||
|
|
"default": "contain"
|
||
|
|
},
|
||
|
|
"profile": {
|
||
|
|
"$ref": "#/components/schemas/Profile",
|
||
|
|
"default": "color"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"type"
|
||
|
|
],
|
||
|
|
"title": "ImageContent"
|
||
|
|
},
|
||
|
|
"Job": {
|
||
|
|
"properties": {
|
||
|
|
"enabled": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Enabled",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"device_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id",
|
||
|
|
"default": "living-room"
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"type": "string",
|
||
|
|
"maxLength": 120,
|
||
|
|
"minLength": 1,
|
||
|
|
"title": "Name"
|
||
|
|
},
|
||
|
|
"schedule": {
|
||
|
|
"$ref": "#/components/schemas/Schedule"
|
||
|
|
},
|
||
|
|
"source": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"oneOf": [
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/ImageContent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/URLContent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/TemplateContent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/FutureContent"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"discriminator": {
|
||
|
|
"propertyName": "type",
|
||
|
|
"mapping": {
|
||
|
|
"html": "#/components/schemas/FutureContent",
|
||
|
|
"image": "#/components/schemas/ImageContent",
|
||
|
|
"image_url": "#/components/schemas/URLContent",
|
||
|
|
"markdown": "#/components/schemas/FutureContent",
|
||
|
|
"template": "#/components/schemas/TemplateContent"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/RestoreContent"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Source"
|
||
|
|
},
|
||
|
|
"display_duration": {
|
||
|
|
"type": "integer",
|
||
|
|
"maximum": 604800.0,
|
||
|
|
"minimum": 0.0,
|
||
|
|
"title": "Display Duration",
|
||
|
|
"default": 0
|
||
|
|
},
|
||
|
|
"restore_previous": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Restore Previous",
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"priority": {
|
||
|
|
"type": "integer",
|
||
|
|
"maximum": 100.0,
|
||
|
|
"minimum": 0.0,
|
||
|
|
"title": "Priority",
|
||
|
|
"default": 50
|
||
|
|
},
|
||
|
|
"id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Id"
|
||
|
|
},
|
||
|
|
"created_at": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Created At"
|
||
|
|
},
|
||
|
|
"updated_at": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Updated At"
|
||
|
|
},
|
||
|
|
"last_run": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Last Run"
|
||
|
|
},
|
||
|
|
"last_result": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Last Result"
|
||
|
|
},
|
||
|
|
"next_run": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Next Run"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"name",
|
||
|
|
"schedule",
|
||
|
|
"source",
|
||
|
|
"id",
|
||
|
|
"created_at",
|
||
|
|
"updated_at"
|
||
|
|
],
|
||
|
|
"title": "Job"
|
||
|
|
},
|
||
|
|
"JobInput": {
|
||
|
|
"properties": {
|
||
|
|
"enabled": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Enabled",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"device_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id",
|
||
|
|
"default": "living-room"
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"type": "string",
|
||
|
|
"maxLength": 120,
|
||
|
|
"minLength": 1,
|
||
|
|
"title": "Name"
|
||
|
|
},
|
||
|
|
"schedule": {
|
||
|
|
"$ref": "#/components/schemas/Schedule"
|
||
|
|
},
|
||
|
|
"source": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"oneOf": [
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/ImageContent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/URLContent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/TemplateContent"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/FutureContent"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"discriminator": {
|
||
|
|
"propertyName": "type",
|
||
|
|
"mapping": {
|
||
|
|
"html": "#/components/schemas/FutureContent",
|
||
|
|
"image": "#/components/schemas/ImageContent",
|
||
|
|
"image_url": "#/components/schemas/URLContent",
|
||
|
|
"markdown": "#/components/schemas/FutureContent",
|
||
|
|
"template": "#/components/schemas/TemplateContent"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/RestoreContent"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Source"
|
||
|
|
},
|
||
|
|
"display_duration": {
|
||
|
|
"type": "integer",
|
||
|
|
"maximum": 604800.0,
|
||
|
|
"minimum": 0.0,
|
||
|
|
"title": "Display Duration",
|
||
|
|
"default": 0
|
||
|
|
},
|
||
|
|
"restore_previous": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Restore Previous",
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"priority": {
|
||
|
|
"type": "integer",
|
||
|
|
"maximum": 100.0,
|
||
|
|
"minimum": 0.0,
|
||
|
|
"title": "Priority",
|
||
|
|
"default": 50
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"name",
|
||
|
|
"schedule",
|
||
|
|
"source"
|
||
|
|
],
|
||
|
|
"title": "JobInput"
|
||
|
|
},
|
||
|
|
"Operation": {
|
||
|
|
"properties": {
|
||
|
|
"operation_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Operation Id"
|
||
|
|
},
|
||
|
|
"status": {
|
||
|
|
"$ref": "#/components/schemas/OperationStatus"
|
||
|
|
},
|
||
|
|
"device_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id"
|
||
|
|
},
|
||
|
|
"created_at": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Created At"
|
||
|
|
},
|
||
|
|
"updated_at": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Updated At"
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/OperationResult"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"error": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"$ref": "#/components/schemas/ErrorBody"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"request_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Request Id"
|
||
|
|
},
|
||
|
|
"client_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Client Id"
|
||
|
|
},
|
||
|
|
"action": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"operation_id",
|
||
|
|
"status",
|
||
|
|
"device_id",
|
||
|
|
"created_at",
|
||
|
|
"updated_at",
|
||
|
|
"request_id",
|
||
|
|
"client_id",
|
||
|
|
"action"
|
||
|
|
],
|
||
|
|
"title": "Operation"
|
||
|
|
},
|
||
|
|
"OperationResult": {
|
||
|
|
"properties": {
|
||
|
|
"image_id": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Image Id"
|
||
|
|
},
|
||
|
|
"asset_id": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Asset Id"
|
||
|
|
},
|
||
|
|
"rendered_asset_id": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Rendered Asset Id"
|
||
|
|
},
|
||
|
|
"url": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Url"
|
||
|
|
},
|
||
|
|
"deferred": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Deferred",
|
||
|
|
"default": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"title": "OperationResult"
|
||
|
|
},
|
||
|
|
"OperationStatus": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"QUEUED",
|
||
|
|
"RENDERING",
|
||
|
|
"UPLOADING",
|
||
|
|
"SYNCING",
|
||
|
|
"COMPLETED",
|
||
|
|
"FAILED",
|
||
|
|
"UNKNOWN"
|
||
|
|
],
|
||
|
|
"title": "OperationStatus"
|
||
|
|
},
|
||
|
|
"Options": {
|
||
|
|
"properties": {
|
||
|
|
"duration": {
|
||
|
|
"type": "integer",
|
||
|
|
"maximum": 604800.0,
|
||
|
|
"minimum": 0.0,
|
||
|
|
"title": "Duration",
|
||
|
|
"default": 0
|
||
|
|
},
|
||
|
|
"restore_previous": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Restore Previous",
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"priority": {
|
||
|
|
"type": "integer",
|
||
|
|
"maximum": 100.0,
|
||
|
|
"minimum": 0.0,
|
||
|
|
"title": "Priority",
|
||
|
|
"default": 50
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"title": "Options"
|
||
|
|
},
|
||
|
|
"Playlist": {
|
||
|
|
"properties": {
|
||
|
|
"device_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id",
|
||
|
|
"default": "living-room"
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"type": "string",
|
||
|
|
"maxLength": 120,
|
||
|
|
"minLength": 1,
|
||
|
|
"title": "Name"
|
||
|
|
},
|
||
|
|
"image_ids": {
|
||
|
|
"items": {
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
"type": "array",
|
||
|
|
"maxItems": 100,
|
||
|
|
"minItems": 1,
|
||
|
|
"title": "Image Ids"
|
||
|
|
},
|
||
|
|
"interval_minutes": {
|
||
|
|
"type": "integer",
|
||
|
|
"maximum": 10080.0,
|
||
|
|
"minimum": 5.0,
|
||
|
|
"title": "Interval Minutes",
|
||
|
|
"default": 60
|
||
|
|
},
|
||
|
|
"mode": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"queue",
|
||
|
|
"random"
|
||
|
|
],
|
||
|
|
"title": "Mode",
|
||
|
|
"default": "queue"
|
||
|
|
},
|
||
|
|
"enabled": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Enabled",
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Id"
|
||
|
|
},
|
||
|
|
"position": {
|
||
|
|
"type": "integer",
|
||
|
|
"title": "Position"
|
||
|
|
},
|
||
|
|
"next_run": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Next Run"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"name",
|
||
|
|
"image_ids",
|
||
|
|
"id",
|
||
|
|
"position",
|
||
|
|
"next_run"
|
||
|
|
],
|
||
|
|
"title": "Playlist"
|
||
|
|
},
|
||
|
|
"PlaylistInput": {
|
||
|
|
"properties": {
|
||
|
|
"device_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id",
|
||
|
|
"default": "living-room"
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"type": "string",
|
||
|
|
"maxLength": 120,
|
||
|
|
"minLength": 1,
|
||
|
|
"title": "Name"
|
||
|
|
},
|
||
|
|
"image_ids": {
|
||
|
|
"items": {
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
"type": "array",
|
||
|
|
"maxItems": 100,
|
||
|
|
"minItems": 1,
|
||
|
|
"title": "Image Ids"
|
||
|
|
},
|
||
|
|
"interval_minutes": {
|
||
|
|
"type": "integer",
|
||
|
|
"maximum": 10080.0,
|
||
|
|
"minimum": 5.0,
|
||
|
|
"title": "Interval Minutes",
|
||
|
|
"default": 60
|
||
|
|
},
|
||
|
|
"mode": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"queue",
|
||
|
|
"random"
|
||
|
|
],
|
||
|
|
"title": "Mode",
|
||
|
|
"default": "queue"
|
||
|
|
},
|
||
|
|
"enabled": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Enabled",
|
||
|
|
"default": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"name",
|
||
|
|
"image_ids"
|
||
|
|
],
|
||
|
|
"title": "PlaylistInput"
|
||
|
|
},
|
||
|
|
"Power": {
|
||
|
|
"properties": {
|
||
|
|
"battery_percent": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Battery Percent"
|
||
|
|
},
|
||
|
|
"charging": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Charging"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"battery_percent",
|
||
|
|
"charging"
|
||
|
|
],
|
||
|
|
"title": "Power"
|
||
|
|
},
|
||
|
|
"Profile": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"color",
|
||
|
|
"grayscale"
|
||
|
|
],
|
||
|
|
"title": "Profile"
|
||
|
|
},
|
||
|
|
"Readiness": {
|
||
|
|
"properties": {
|
||
|
|
"status": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Status"
|
||
|
|
},
|
||
|
|
"checks": {
|
||
|
|
"additionalProperties": {
|
||
|
|
"type": "boolean"
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"title": "Checks"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"status",
|
||
|
|
"checks"
|
||
|
|
],
|
||
|
|
"title": "Readiness"
|
||
|
|
},
|
||
|
|
"ReconcileRequest": {
|
||
|
|
"properties": {
|
||
|
|
"acknowledge": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Acknowledge",
|
||
|
|
"default": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"title": "ReconcileRequest"
|
||
|
|
},
|
||
|
|
"Reconciliation": {
|
||
|
|
"properties": {
|
||
|
|
"operation_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Operation Id"
|
||
|
|
},
|
||
|
|
"current_image_id": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Current Image Id"
|
||
|
|
},
|
||
|
|
"expected_image_id": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "integer"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Expected Image Id"
|
||
|
|
},
|
||
|
|
"cloud_images": {
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/GalleryImage"
|
||
|
|
},
|
||
|
|
"type": "array",
|
||
|
|
"title": "Cloud Images"
|
||
|
|
},
|
||
|
|
"resolved": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Resolved"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"operation_id",
|
||
|
|
"current_image_id",
|
||
|
|
"expected_image_id",
|
||
|
|
"cloud_images",
|
||
|
|
"resolved"
|
||
|
|
],
|
||
|
|
"title": "Reconciliation"
|
||
|
|
},
|
||
|
|
"RestoreContent": {
|
||
|
|
"properties": {
|
||
|
|
"type": {
|
||
|
|
"type": "string",
|
||
|
|
"const": "restore",
|
||
|
|
"title": "Type"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"type"
|
||
|
|
],
|
||
|
|
"title": "RestoreContent"
|
||
|
|
},
|
||
|
|
"Schedule": {
|
||
|
|
"properties": {
|
||
|
|
"type": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"cron",
|
||
|
|
"daily",
|
||
|
|
"weekdays",
|
||
|
|
"weekends",
|
||
|
|
"date",
|
||
|
|
"temporary"
|
||
|
|
],
|
||
|
|
"title": "Type"
|
||
|
|
},
|
||
|
|
"cron": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Cron"
|
||
|
|
},
|
||
|
|
"time": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string",
|
||
|
|
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Time"
|
||
|
|
},
|
||
|
|
"at": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string",
|
||
|
|
"format": "date-time"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "At"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"type"
|
||
|
|
],
|
||
|
|
"title": "Schedule"
|
||
|
|
},
|
||
|
|
"SettingsView": {
|
||
|
|
"properties": {
|
||
|
|
"version": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Version"
|
||
|
|
},
|
||
|
|
"mock": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Mock"
|
||
|
|
},
|
||
|
|
"write_enabled": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Write Enabled"
|
||
|
|
},
|
||
|
|
"api_key_configured": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Api Key Configured"
|
||
|
|
},
|
||
|
|
"api_token_configured": {
|
||
|
|
"type": "boolean",
|
||
|
|
"title": "Api Token Configured"
|
||
|
|
},
|
||
|
|
"timezone": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Timezone"
|
||
|
|
},
|
||
|
|
"device_id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Device Id"
|
||
|
|
},
|
||
|
|
"weather_provider": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Weather Provider"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"version",
|
||
|
|
"mock",
|
||
|
|
"write_enabled",
|
||
|
|
"api_key_configured",
|
||
|
|
"api_token_configured",
|
||
|
|
"timezone",
|
||
|
|
"device_id",
|
||
|
|
"weather_provider"
|
||
|
|
],
|
||
|
|
"title": "SettingsView"
|
||
|
|
},
|
||
|
|
"Source": {
|
||
|
|
"properties": {
|
||
|
|
"client": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string",
|
||
|
|
"maxLength": 80
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Client"
|
||
|
|
},
|
||
|
|
"request_id": {
|
||
|
|
"anyOf": [
|
||
|
|
{
|
||
|
|
"type": "string",
|
||
|
|
"maxLength": 120
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"type": "null"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Request Id"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"title": "Source"
|
||
|
|
},
|
||
|
|
"TemplateConfig": {
|
||
|
|
"properties": {
|
||
|
|
"data": {
|
||
|
|
"additionalProperties": true,
|
||
|
|
"type": "object",
|
||
|
|
"title": "Data"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"data"
|
||
|
|
],
|
||
|
|
"title": "TemplateConfig"
|
||
|
|
},
|
||
|
|
"TemplateContent": {
|
||
|
|
"properties": {
|
||
|
|
"type": {
|
||
|
|
"type": "string",
|
||
|
|
"const": "template",
|
||
|
|
"title": "Type"
|
||
|
|
},
|
||
|
|
"template": {
|
||
|
|
"type": "string",
|
||
|
|
"pattern": "^[a-z0-9-]{1,60}$",
|
||
|
|
"title": "Template"
|
||
|
|
},
|
||
|
|
"data": {
|
||
|
|
"additionalProperties": true,
|
||
|
|
"type": "object",
|
||
|
|
"title": "Data"
|
||
|
|
},
|
||
|
|
"profile": {
|
||
|
|
"$ref": "#/components/schemas/Profile",
|
||
|
|
"default": "color"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"type",
|
||
|
|
"template"
|
||
|
|
],
|
||
|
|
"title": "TemplateContent"
|
||
|
|
},
|
||
|
|
"TemplateInfo": {
|
||
|
|
"properties": {
|
||
|
|
"id": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Id"
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Name"
|
||
|
|
},
|
||
|
|
"width": {
|
||
|
|
"type": "integer",
|
||
|
|
"title": "Width",
|
||
|
|
"default": 1200
|
||
|
|
},
|
||
|
|
"height": {
|
||
|
|
"type": "integer",
|
||
|
|
"title": "Height",
|
||
|
|
"default": 1600
|
||
|
|
},
|
||
|
|
"fields": {
|
||
|
|
"items": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"type": "array",
|
||
|
|
"title": "Fields"
|
||
|
|
},
|
||
|
|
"defaults": {
|
||
|
|
"additionalProperties": true,
|
||
|
|
"type": "object",
|
||
|
|
"title": "Defaults"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"id",
|
||
|
|
"name",
|
||
|
|
"fields",
|
||
|
|
"defaults"
|
||
|
|
],
|
||
|
|
"title": "TemplateInfo"
|
||
|
|
},
|
||
|
|
"URLContent": {
|
||
|
|
"properties": {
|
||
|
|
"type": {
|
||
|
|
"type": "string",
|
||
|
|
"const": "image_url",
|
||
|
|
"title": "Type"
|
||
|
|
},
|
||
|
|
"url": {
|
||
|
|
"type": "string",
|
||
|
|
"maxLength": 2048,
|
||
|
|
"title": "Url"
|
||
|
|
},
|
||
|
|
"name": {
|
||
|
|
"type": "string",
|
||
|
|
"maxLength": 120,
|
||
|
|
"title": "Name",
|
||
|
|
"default": "image.jpg"
|
||
|
|
},
|
||
|
|
"fit": {
|
||
|
|
"$ref": "#/components/schemas/Fit",
|
||
|
|
"default": "contain"
|
||
|
|
},
|
||
|
|
"profile": {
|
||
|
|
"$ref": "#/components/schemas/Profile",
|
||
|
|
"default": "color"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false,
|
||
|
|
"type": "object",
|
||
|
|
"required": [
|
||
|
|
"type",
|
||
|
|
"url"
|
||
|
|
],
|
||
|
|
"title": "URLContent"
|
||
|
|
},
|
||
|
|
"Version": {
|
||
|
|
"properties": {
|
||
|
|
"product": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Product",
|
||
|
|
"default": "Pigway Frame Flow"
|
||
|
|
},
|
||
|
|
"version": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Version",
|
||
|
|
"default": "0.1.0"
|
||
|
|
},
|
||
|
|
"api_version": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Api Version",
|
||
|
|
"default": "v1"
|
||
|
|
},
|
||
|
|
"commit": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Commit",
|
||
|
|
"default": "development"
|
||
|
|
},
|
||
|
|
"build_time": {
|
||
|
|
"type": "string",
|
||
|
|
"title": "Build Time",
|
||
|
|
"default": "unknown"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"type": "object",
|
||
|
|
"title": "Version"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"securitySchemes": {
|
||
|
|
"HTTPBearer": {
|
||
|
|
"type": "http",
|
||
|
|
"scheme": "bearer"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|