11449 lines
302 KiB
JSON
11449 lines
302 KiB
JSON
{
|
|
"openapi": "3.0.1",
|
|
"info": {
|
|
"title": "Extension-for-Stable-Diffusion-on-AWS",
|
|
"description": "This is a ESD Server based on the OpenAPI 3.0 specification. \nSome useful links: \n\n- [The ESD Repository](https://github.com/awslabs/stable-diffusion-aws-extension)\n- [Implementation Guide](https://awslabs.github.io/stable-diffusion-aws-extension/en/)",
|
|
"version": "v1.7.0",
|
|
"license": {
|
|
"name": "Apache 2.0",
|
|
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
|
|
}
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "https://{ApiId}.execute-api.{Region}.{Domain}/prod/",
|
|
"variables": {
|
|
"ApiId": {
|
|
"default": "xxxxxx"
|
|
},
|
|
"Region": {
|
|
"default": "ap-northeast-1"
|
|
},
|
|
"Domain": {
|
|
"default": "amazonaws.com"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"paths": {
|
|
"/": {
|
|
"get": {
|
|
"operationId": "RootAPI",
|
|
"responses": {
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RootAPIResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "The Root API of ESD",
|
|
"summary": "Root API (RootAPI)",
|
|
"tags": [
|
|
"Service"
|
|
],
|
|
"parameters": []
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/api": {
|
|
"get": {
|
|
"operationId": "GetApiOAS",
|
|
"responses": {
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/GetApiOASResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Get OAS json schema",
|
|
"summary": "Get OAS (GetApiOAS)",
|
|
"tags": [
|
|
"Service"
|
|
],
|
|
"parameters": []
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/checkpoints": {
|
|
"get": {
|
|
"operationId": "ListCheckpoints",
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Filter by username",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "per_page",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Limit Per Page",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "page",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Page Index",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"504": {
|
|
"description": "504 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/504"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListCheckpointsResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "List Checkpoints with Parameters",
|
|
"summary": "List Checkpoints (ListCheckpoints)",
|
|
"tags": [
|
|
"Checkpoints"
|
|
]
|
|
},
|
|
"post": {
|
|
"operationId": "CreateCheckpoint",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateCheckPointRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"504": {
|
|
"description": "504 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/504"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"201": {
|
|
"description": "201 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateCheckpointResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"202": {
|
|
"description": "202 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateCheckpointUrlResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Create a new Checkpoint",
|
|
"summary": "Create Checkpoint (CreateCheckpoint)",
|
|
"tags": [
|
|
"Checkpoints"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"operationId": "DeleteCheckpoints",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DeleteCheckpointsRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"504": {
|
|
"description": "504 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/504"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/204"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Delete specify Checkpoints",
|
|
"summary": "Delete Checkpoints (DeleteCheckpoints)",
|
|
"tags": [
|
|
"Checkpoints"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/checkpoints/{id}": {
|
|
"put": {
|
|
"operationId": "UpdateCheckpoint",
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Dataset Name"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UpdateCheckPointRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"504": {
|
|
"description": "504 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/504"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UpdateCheckpointResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"202": {
|
|
"description": "202 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UpdateCheckpointNameResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Update Checkpoint by ID",
|
|
"summary": "Update Checkpoint (UpdateCheckpoint)",
|
|
"tags": [
|
|
"Checkpoints"
|
|
]
|
|
},
|
|
"options": {
|
|
"parameters": [],
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
]
|
|
}
|
|
},
|
|
"/datasets": {
|
|
"get": {
|
|
"operationId": "ListDatasets",
|
|
"parameters": [
|
|
{
|
|
"name": "exclusive_start_key",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Exclusive Start Key",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Limit Per Page",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListDatasetsResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "List Datasets with Parameters",
|
|
"summary": "List Datasets (ListDatasets)",
|
|
"tags": [
|
|
"Datasets"
|
|
]
|
|
},
|
|
"post": {
|
|
"operationId": "CreateDataset",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateDatasetRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"504": {
|
|
"description": "504 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/504"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"201": {
|
|
"description": "201 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateDatasetResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Create a new Dataset",
|
|
"summary": "Create Dataset (CreateDataset)",
|
|
"tags": [
|
|
"Datasets"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"operationId": "DeleteDatasets",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DeleteDatasetsRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/204"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Delete specify Datasets",
|
|
"summary": "Delete Datasets (DeleteDatasets)",
|
|
"tags": [
|
|
"Datasets"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/datasets/{id}": {
|
|
"get": {
|
|
"operationId": "GetDataset",
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Dataset Name"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/GetDatasetResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Get Dataset by ID",
|
|
"summary": "Get Dataset (GetDataset)",
|
|
"tags": [
|
|
"Datasets"
|
|
]
|
|
},
|
|
"put": {
|
|
"operationId": "UpdateDataset",
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Dataset Name"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UpdateDatasetRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UpdateDatasetsResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Update Dataset by ID",
|
|
"summary": "Update Dataset (UpdateDataset)",
|
|
"tags": [
|
|
"Datasets"
|
|
]
|
|
},
|
|
"options": {
|
|
"parameters": [],
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
]
|
|
}
|
|
},
|
|
"/datasets/{id}/crop": {
|
|
"post": {
|
|
"operationId": "CropDataset",
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Dataset Name"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CropDatasetRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"202": {
|
|
"description": "202 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CropDatasetResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Create new Crop Dataset",
|
|
"summary": "Create new Crop Dataset (CropDataset)",
|
|
"tags": [
|
|
"Datasets"
|
|
]
|
|
},
|
|
"options": {
|
|
"parameters": [],
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
]
|
|
}
|
|
},
|
|
"/endpoints": {
|
|
"get": {
|
|
"operationId": "ListEndpoints",
|
|
"parameters": [
|
|
{
|
|
"name": "exclusive_start_key",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Exclusive Start Key",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Limit Per Page",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListEndpointsResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "List Endpoints with Parameters",
|
|
"summary": "List Endpoints (ListEndpoints)",
|
|
"tags": [
|
|
"Endpoints"
|
|
]
|
|
},
|
|
"post": {
|
|
"operationId": "CreateEndpoint",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateEndpointRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"202": {
|
|
"description": "202 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateEndpointResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Create a new Endpoint",
|
|
"summary": "Create Endpoint (CreateEndpoint)",
|
|
"tags": [
|
|
"Endpoints"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"operationId": "DeleteEndpoints",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DeleteEndpointsRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/204"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Delete specify Endpoints",
|
|
"summary": "Delete Endpoints (DeleteEndpoints)",
|
|
"tags": [
|
|
"Endpoints"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/executes": {
|
|
"get": {
|
|
"operationId": "ListExecutes",
|
|
"parameters": [
|
|
{
|
|
"name": "exclusive_start_key",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Exclusive Start Key",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Limit Per Page",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListExecutesResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "List Executes with Parameters",
|
|
"summary": "List Executes (ListExecutes)",
|
|
"tags": [
|
|
"Executes"
|
|
]
|
|
},
|
|
"post": {
|
|
"operationId": "CreateExecute",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ExecuteRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateExecuteResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"201": {
|
|
"description": "201 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateExecuteResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"504": {
|
|
"description": "504 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/504"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Create a new Execute for Comfy",
|
|
"summary": "Create Execute (CreateExecute)",
|
|
"tags": [
|
|
"Executes"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"operationId": "DeleteExecutes",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DeleteExecutesApiRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/204"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Delete specify Executes",
|
|
"summary": "Delete Executes (DeleteExecutes)",
|
|
"tags": [
|
|
"Executes"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/executes/{id}": {
|
|
"get": {
|
|
"operationId": "GetExecute",
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "ID"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/GetExecuteResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Get Execute by ID",
|
|
"summary": "Get Execute (GetExecute)",
|
|
"tags": [
|
|
"Executes"
|
|
]
|
|
},
|
|
"options": {
|
|
"parameters": [],
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
]
|
|
}
|
|
},
|
|
"/executes/{id}/logs": {
|
|
"get": {
|
|
"operationId": "GetExecuteLogs",
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "ID"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/GetExecuteLogsResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Get Execute Logs by ID",
|
|
"summary": "Get Execute Logs (GetExecuteLogs)",
|
|
"tags": [
|
|
"Executes"
|
|
]
|
|
},
|
|
"options": {
|
|
"parameters": [],
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
]
|
|
}
|
|
},
|
|
"/inferences": {
|
|
"get": {
|
|
"operationId": "ListInferences",
|
|
"parameters": [
|
|
{
|
|
"name": "exclusive_start_key",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Exclusive Start Key",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "type",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Inference task type: txt2img, img2img",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Limit Per Page",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListInferencesResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "List Inferences with Parameters",
|
|
"summary": "List Inferences (ListInferences)",
|
|
"tags": [
|
|
"Inferences"
|
|
]
|
|
},
|
|
"post": {
|
|
"operationId": "CreateInferenceJob",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateInferenceJobRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateInferenceJobRealtimeResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"201": {
|
|
"description": "201 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateInferenceJobResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"202": {
|
|
"description": "202 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateInferenceJobAsyncResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"504": {
|
|
"description": "504 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/504"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Create a new Inference Job",
|
|
"summary": "Create Inference Job (CreateInferenceJob)",
|
|
"tags": [
|
|
"Inferences"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"operationId": "DeleteInferenceJobs",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DeleteInferenceJobsRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/204"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Delete specify Inference Jobs",
|
|
"summary": "Delete Inference Jobs (DeleteInferenceJobs)",
|
|
"tags": [
|
|
"Inferences"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/inferences/{id}": {
|
|
"get": {
|
|
"operationId": "GetInferenceJob",
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "ID"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/GetInferenceJobResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Get Inference Job",
|
|
"summary": "Get Inference Job (GetInferenceJob)",
|
|
"tags": [
|
|
"Inferences"
|
|
]
|
|
},
|
|
"options": {
|
|
"parameters": [],
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
]
|
|
}
|
|
},
|
|
"/inferences/{id}/start": {
|
|
"put": {
|
|
"operationId": "StartInferences",
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "ID"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"504": {
|
|
"description": "504 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/504"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/StartInferenceJobRealtimeResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"202": {
|
|
"description": "202 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/StartInferenceJobAsyncResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Start specify Inference Job by ID",
|
|
"summary": "Start Inference Job (StartInferences)",
|
|
"tags": [
|
|
"Inferences"
|
|
]
|
|
},
|
|
"options": {
|
|
"parameters": [],
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
]
|
|
}
|
|
},
|
|
"/merge": {
|
|
"post": {
|
|
"operationId": "MergeExecute",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/MergeExecuteRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Merge specify Executes",
|
|
"summary": "Merge Executes (MergeExecute)",
|
|
"tags": [
|
|
"Executes"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/ping": {
|
|
"get": {
|
|
"operationId": "Ping",
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/PingResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "The Ping API for Health Check",
|
|
"summary": "Ping API (Ping)",
|
|
"tags": [
|
|
"Service"
|
|
],
|
|
"parameters": []
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/prepare": {
|
|
"post": {
|
|
"operationId": "CreatePrepare",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/PrepareRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Create a new Prepare",
|
|
"summary": "Create Prepare (CreatePrepare)",
|
|
"tags": [
|
|
"Prepare"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/prepare/{id}": {
|
|
"get": {
|
|
"operationId": "GetPrepare",
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Get Prepare by ID",
|
|
"summary": "Get Prepare (GetPrepare)",
|
|
"tags": [
|
|
"Prepare"
|
|
]
|
|
},
|
|
"options": {
|
|
"parameters": [],
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
]
|
|
}
|
|
},
|
|
"/roles": {
|
|
"get": {
|
|
"operationId": "ListRoles",
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListRolesResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "List all roles",
|
|
"summary": "List Roles (ListRoles)",
|
|
"tags": [
|
|
"Roles"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"post": {
|
|
"operationId": "CreateRole",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateRoleRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"201": {
|
|
"description": "201 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateRoleResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Create a new role",
|
|
"summary": "Create Role (CreateRole)",
|
|
"tags": [
|
|
"Roles"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"operationId": "DeleteRoles",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DeleteRolesRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/204"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Delete specify Roles",
|
|
"summary": "Delete Roles (DeleteRoles)",
|
|
"tags": [
|
|
"Roles"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/schemas": {
|
|
"get": {
|
|
"operationId": "ListSchemas",
|
|
"parameters": [],
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListSchemasResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "List Schemas with Parameters",
|
|
"summary": "List Schemas (ListSchemas)",
|
|
"tags": [
|
|
"Schemas"
|
|
]
|
|
},
|
|
"post": {
|
|
"operationId": "CreateSchema",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateSchemaRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateSchemaResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Create a new Schema",
|
|
"summary": "Release new Schema (CreateSchema)",
|
|
"tags": [
|
|
"Schemas"
|
|
],
|
|
"parameters": []
|
|
},
|
|
"delete": {
|
|
"operationId": "DeleteSchemas",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DeleteSchemasRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/204"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Delete specify Schemas",
|
|
"summary": "Delete Schemas (DeleteSchemas)",
|
|
"tags": [
|
|
"Schemas"
|
|
],
|
|
"parameters": []
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/schemas/{name}": {
|
|
"get": {
|
|
"operationId": "GetSchema",
|
|
"parameters": [
|
|
{
|
|
"name": "name",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Name"
|
|
}
|
|
],
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/GetSchemaResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Get Schema by Name",
|
|
"summary": "Get Schema (GetSchema)",
|
|
"tags": [
|
|
"Schemas"
|
|
]
|
|
},
|
|
"put": {
|
|
"operationId": "UpdateSchema",
|
|
"parameters": [
|
|
{
|
|
"name": "name",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Name"
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UpdateSchemaRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UpdateSchemaResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Update Schema by Name",
|
|
"summary": "Update Schema (UpdateSchema)",
|
|
"tags": [
|
|
"Schemas"
|
|
]
|
|
},
|
|
"options": {
|
|
"parameters": [],
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
]
|
|
}
|
|
},
|
|
"/sync": {
|
|
"post": {
|
|
"operationId": "SyncMessage",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/SyncMsgRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Sync Message to Endpoint",
|
|
"summary": "Sync Message (SyncMessage)",
|
|
"tags": [
|
|
"Sync"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/sync/{id}": {
|
|
"get": {
|
|
"operationId": "GetSyncMessage",
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Get Sync Message from Endpoint",
|
|
"summary": "Get Sync Message (GetSyncMessage)",
|
|
"tags": [
|
|
"Sync"
|
|
]
|
|
},
|
|
"options": {
|
|
"parameters": [],
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
]
|
|
}
|
|
},
|
|
"/trainings": {
|
|
"get": {
|
|
"operationId": "ListTrainings",
|
|
"parameters": [
|
|
{
|
|
"name": "exclusive_start_key",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Exclusive Start Key",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Limit Per Page",
|
|
"required": false
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListTrainingsResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "List Trainings with Parameters",
|
|
"summary": "List Trainings (ListTrainings)",
|
|
"tags": [
|
|
"Trainings"
|
|
]
|
|
},
|
|
"post": {
|
|
"operationId": "CreateTraining",
|
|
"requestBody": {
|
|
"content": {
|
|
"$default": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateTrainingJobRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"201": {
|
|
"description": "201 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateTrainResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Create a new Training Job",
|
|
"summary": "Create Training (CreateTraining)",
|
|
"tags": [
|
|
"Trainings"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"operationId": "DeleteTrainings",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DeleteTrainingJobsRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/204"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Delete specify Trainings",
|
|
"summary": "Delete Trainings (DeleteTrainings)",
|
|
"tags": [
|
|
"Trainings"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/trainings/{id}": {
|
|
"get": {
|
|
"operationId": "GetTraining",
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "ID"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
],
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/GetTrainResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Get Training List",
|
|
"summary": "Get Training (GetTraining)",
|
|
"tags": [
|
|
"Trainings"
|
|
]
|
|
},
|
|
"options": {
|
|
"parameters": [],
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
]
|
|
}
|
|
},
|
|
"/users": {
|
|
"get": {
|
|
"operationId": "ListUsers",
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListUsersResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "List all users",
|
|
"summary": "List Users (ListUsers)",
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"post": {
|
|
"operationId": "CreateUser",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateUserRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"201": {
|
|
"description": "201 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateUserResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Create a new user",
|
|
"summary": "Create User (CreateUser)",
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"operationId": "DeleteUsers",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DeleteUsersRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/204"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Delete specify Users",
|
|
"summary": "Delete Users (DeleteUsers)",
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "username",
|
|
"description": "Username",
|
|
"in": "header",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"default": "api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/workflows": {
|
|
"get": {
|
|
"operationId": "ListWorkflows",
|
|
"parameters": [],
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ListWorkflowsResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "List Workflows with Parameters",
|
|
"summary": "List Workflows (ListWorkflows)",
|
|
"tags": [
|
|
"Workflows"
|
|
]
|
|
},
|
|
"post": {
|
|
"operationId": "CreateWorkflow",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateWorkflowRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"202": {
|
|
"description": "202 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateWorkflowResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Create a new Workflow",
|
|
"summary": "Release new Workflow (CreateWorkflow)",
|
|
"tags": [
|
|
"Workflows"
|
|
],
|
|
"parameters": []
|
|
},
|
|
"delete": {
|
|
"operationId": "DeleteWorkflows",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/DeleteWorkflowsRequest"
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"responses": {
|
|
"202": {
|
|
"description": "202 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/202"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "400 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/204"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Delete specify Workflows",
|
|
"summary": "Delete Workflows (DeleteWorkflows)",
|
|
"tags": [
|
|
"Workflows"
|
|
],
|
|
"parameters": []
|
|
},
|
|
"options": {
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
],
|
|
"parameters": []
|
|
}
|
|
},
|
|
"/workflows/{name}": {
|
|
"get": {
|
|
"operationId": "GetWorkflow",
|
|
"parameters": [
|
|
{
|
|
"name": "name",
|
|
"in": "path",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"description": "Name"
|
|
}
|
|
],
|
|
"responses": {
|
|
"404": {
|
|
"description": "404 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/404"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"200": {
|
|
"description": "200 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/GetWorkflowResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"description": "401 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/401"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"description": "403 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/403"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"api_key": []
|
|
}
|
|
],
|
|
"description": "Get Workflow by Name",
|
|
"summary": "Get Workflow (GetWorkflow)",
|
|
"tags": [
|
|
"Workflows"
|
|
]
|
|
},
|
|
"options": {
|
|
"parameters": [],
|
|
"responses": {
|
|
"204": {
|
|
"description": "204 response",
|
|
"headers": {
|
|
"Access-Control-Allow-Origin": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Methods": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"Access-Control-Allow-Headers": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {}
|
|
}
|
|
},
|
|
"description": "",
|
|
"summary": "",
|
|
"tags": [
|
|
"Others"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"CreateInferenceJobRequest": {
|
|
"title": "CreateInferenceJob",
|
|
"required": [
|
|
"inference_type",
|
|
"models",
|
|
"task_type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"inference_type": {
|
|
"type": "string",
|
|
"description": "Inference type",
|
|
"enum": [
|
|
"Real-time",
|
|
"Async"
|
|
]
|
|
},
|
|
"custom_extensions": {
|
|
"type": "string"
|
|
},
|
|
"models": {
|
|
"type": "object",
|
|
"properties": {
|
|
"embeddings": {
|
|
"type": "array"
|
|
}
|
|
}
|
|
},
|
|
"payload_string": {
|
|
"type": "string"
|
|
},
|
|
"workflow": {
|
|
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
"type": "string",
|
|
"description": "Workflow remark"
|
|
},
|
|
"task_type": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"CreateWorkflowResponse": {
|
|
"title": "CreateWorkflowResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"image_uri",
|
|
"name",
|
|
"payload_json",
|
|
"size",
|
|
"status"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"size": {
|
|
"type": "string"
|
|
},
|
|
"image_uri": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9]*$",
|
|
"type": "string",
|
|
"description": "Name of workflow"
|
|
},
|
|
"payload_json": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
202
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"DeleteEndpointsRequest": {
|
|
"title": "DeleteEndpoints",
|
|
"required": [
|
|
"endpoint_name_list"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"endpoint_name_list": {
|
|
"maxItems": 10,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"ListCheckpointsResponse": {
|
|
"title": "ListCheckpointsResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"checkpoints",
|
|
"page",
|
|
"pages",
|
|
"per_page",
|
|
"total"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"per_page": {
|
|
"type": "integer"
|
|
},
|
|
"total": {
|
|
"type": "integer"
|
|
},
|
|
"pages": {
|
|
"type": "integer"
|
|
},
|
|
"checkpoints": {
|
|
"type": "array",
|
|
"items": {
|
|
"required": [
|
|
"allowed_roles_or_users",
|
|
"created",
|
|
"id",
|
|
"name",
|
|
"s3Location",
|
|
"status",
|
|
"type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"allowed_roles_or_users": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"created": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"description": "ID of checkpoint",
|
|
"format": "uuid"
|
|
},
|
|
"source_path": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"s3Location": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"description": "Type of checkpoint",
|
|
"enum": [
|
|
"Stable-diffusion",
|
|
"embeddings",
|
|
"Lora",
|
|
"hypernetworks",
|
|
"ControlNet",
|
|
"VAE",
|
|
"Comfy"
|
|
]
|
|
},
|
|
"target_path": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Status of checkpoint"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"page": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"GetInferenceJobResponse": {
|
|
"title": "GetInferenceJob",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"InferenceJobId",
|
|
"createTime",
|
|
"image_names",
|
|
"img_presigned_urls",
|
|
"output_presigned_urls",
|
|
"owner_group_or_role",
|
|
"params",
|
|
"startTime",
|
|
"status",
|
|
"taskType"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"owner_group_or_role": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"output_presigned_urls": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"taskType": {
|
|
"type": "string"
|
|
},
|
|
"image_names": {
|
|
"type": "array",
|
|
"items": {
|
|
"pattern": "^.+\\.*$",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"InferenceJobId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"payload_string": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"sagemakerRaw": {
|
|
"type": "object"
|
|
},
|
|
"startTime": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"params": {
|
|
"required": [
|
|
"input_body_s3",
|
|
"sagemaker_inference_endpoint_id",
|
|
"sagemaker_inference_endpoint_name",
|
|
"sagemaker_inference_instance_type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"input_body_s3": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"sagemaker_inference_endpoint_id": {
|
|
"pattern": "^[a-f0-9\\-]{36}$",
|
|
"type": "string",
|
|
"description": "ID of Endpoint"
|
|
},
|
|
"input_body_presign_url": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"output_path": {
|
|
"type": "string"
|
|
},
|
|
"sagemaker_inference_instance_type": {
|
|
"type": "string",
|
|
"description": "Instance Type"
|
|
},
|
|
"sagemaker_inference_endpoint_name": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"img_presigned_urls": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"CreateInferenceJobResponse": {
|
|
"title": "CreateInferenceJobResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"inference"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"inference": {
|
|
"required": [
|
|
"api_params_s3_location",
|
|
"api_params_s3_upload_url",
|
|
"id",
|
|
"type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"models": {
|
|
"type": "array",
|
|
"items": {
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"workflow": {
|
|
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
"type": "string",
|
|
"description": "Workflow remark"
|
|
},
|
|
"api_params_s3_location": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"api_params_s3_upload_url": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"PingResponse": {
|
|
"title": "PingResponse",
|
|
"required": [
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
},
|
|
"description": "Response Model for Ping API"
|
|
},
|
|
"GetSchemaResponse": {
|
|
"title": "GetSchema",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"create_time",
|
|
"name",
|
|
"payload",
|
|
"workflow"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"workflow": {
|
|
"type": "string"
|
|
},
|
|
"create_time": {
|
|
"type": "string"
|
|
},
|
|
"payload": {
|
|
"minLength": 1,
|
|
"type": "string",
|
|
"description": "Payload JSON String of Schema"
|
|
},
|
|
"name": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
"type": "string",
|
|
"description": "Name of Workflow Schema"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"GetTrainResponse": {
|
|
"title": "GetTrainingJob",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"job_status": {
|
|
"type": "string",
|
|
"description": "Status of training job"
|
|
},
|
|
"train_type": {
|
|
"type": "string",
|
|
"description": "Training Type"
|
|
},
|
|
"id": {
|
|
"pattern": "^[a-f0-9\\-]{36}$",
|
|
"type": "string",
|
|
"description": "ID of training job"
|
|
},
|
|
"params": {
|
|
"required": [
|
|
"config_params",
|
|
"training_params",
|
|
"training_type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"training_params": {
|
|
"type": "object",
|
|
"description": "Training Parameters"
|
|
},
|
|
"training_type": {
|
|
"type": "string",
|
|
"description": "Training Type"
|
|
},
|
|
"config_params": {
|
|
"required": [
|
|
"output_name"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"output_name": {
|
|
"minLength": 1,
|
|
"type": "string",
|
|
"description": "Output Model Name"
|
|
}
|
|
},
|
|
"additionalProperties": true,
|
|
"description": "Training Configuration Parameters"
|
|
}
|
|
},
|
|
"additionalProperties": true,
|
|
"description": "Training Parameters"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"GetApiOASResponse": {
|
|
"title": "ApiDoc",
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"description": "Response Model for OAS"
|
|
},
|
|
"CropDatasetRequest": {
|
|
"title": "CropDataset",
|
|
"required": [
|
|
"max_resolution"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"max_resolution": {
|
|
"pattern": "^[1-9]\\d*x[1-9]\\d*$",
|
|
"type": "string",
|
|
"description": "Max resolution of the image, like: 512x512"
|
|
}
|
|
}
|
|
},
|
|
"DeleteWorkflowsRequest": {
|
|
"title": "DeleteWorkflows",
|
|
"required": [
|
|
"workflow_name_list"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"workflow_name_list": {
|
|
"maxItems": 10,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9]*$",
|
|
"type": "string",
|
|
"description": "Name of workflow"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"ListRolesResponse": {
|
|
"title": "ListRoles",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"last_evaluated_key",
|
|
"roles"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"last_evaluated_key": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"description": "Last Key for Pagination"
|
|
}
|
|
]
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"required": [
|
|
"creator",
|
|
"permissions",
|
|
"role_name"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"role_name": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"type": "string",
|
|
"description": "Creator of the dataset"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"description": "Permissions for user",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"ListUsersResponse": {
|
|
"title": "ListUsers",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"last_evaluated_key",
|
|
"users"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"last_evaluated_key": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"description": "Last Key for Pagination"
|
|
}
|
|
]
|
|
},
|
|
"users": {
|
|
"type": "array",
|
|
"items": {
|
|
"required": [
|
|
"creator",
|
|
"password",
|
|
"permissions",
|
|
"roles",
|
|
"username"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"creator": {
|
|
"type": "string",
|
|
"description": "Creator of the dataset"
|
|
},
|
|
"password": {
|
|
"type": "string",
|
|
"description": "Password for user"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"description": "Permissions for user",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"roles": {
|
|
"maxItems": 20,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"description": "Roles for user",
|
|
"items": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"username": {
|
|
"minLength": 1,
|
|
"type": "string",
|
|
"description": "Username for user"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"CreateInferenceJobAsyncResponse": {
|
|
"title": "CreateInferenceJobAsyncResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"InferenceJobId",
|
|
"status"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"InferenceJobId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"CreateUserResponse": {
|
|
"title": "CreateUser",
|
|
"required": [
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"ListTrainingsResponse": {
|
|
"title": "ListTrainingJobs",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"last_evaluated_key",
|
|
"trainings"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"last_evaluated_key": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"description": "Last Key for Pagination"
|
|
}
|
|
]
|
|
},
|
|
"trainings": {
|
|
"type": "array",
|
|
"items": {
|
|
"required": [
|
|
"created",
|
|
"id",
|
|
"modelName",
|
|
"params",
|
|
"sagemakerTrainName",
|
|
"status",
|
|
"trainType"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"modelName": {
|
|
"type": "string",
|
|
"description": "Model Name"
|
|
},
|
|
"trainType": {
|
|
"type": "string",
|
|
"description": "Training Type"
|
|
},
|
|
"created": {
|
|
"type": "string",
|
|
"description": "Created Time of Training Job"
|
|
},
|
|
"id": {
|
|
"pattern": "^[a-f0-9\\-]{36}$",
|
|
"type": "string",
|
|
"description": "ID of training job"
|
|
},
|
|
"sagemakerTrainName": {
|
|
"type": "string",
|
|
"description": "Name of SageMaker Training Job"
|
|
},
|
|
"params": {
|
|
"required": [
|
|
"config_params",
|
|
"training_params",
|
|
"training_type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"training_params": {
|
|
"type": "object",
|
|
"description": "Training Parameters"
|
|
},
|
|
"training_type": {
|
|
"type": "string",
|
|
"description": "Training Type"
|
|
},
|
|
"config_params": {
|
|
"required": [
|
|
"output_name"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"output_name": {
|
|
"minLength": 1,
|
|
"type": "string",
|
|
"description": "Output Model Name"
|
|
}
|
|
},
|
|
"additionalProperties": true,
|
|
"description": "Training Configuration Parameters"
|
|
}
|
|
},
|
|
"additionalProperties": true,
|
|
"description": "Training Parameters"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Status of training job"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"CreateEndpointResponse": {
|
|
"title": "CreateEndpointResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"EndpointDeploymentJobId",
|
|
"autoscaling",
|
|
"current_instance_count",
|
|
"custom_extensions",
|
|
"endpoint_name",
|
|
"endpoint_status",
|
|
"endpoint_type",
|
|
"instance_type",
|
|
"max_instance_number",
|
|
"min_instance_number",
|
|
"owner_group_or_role",
|
|
"service_type",
|
|
"startTime"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"custom_extensions": {
|
|
"type": "string",
|
|
"description": "Custom Extensions"
|
|
},
|
|
"EndpointDeploymentJobId": {
|
|
"pattern": "^[a-f0-9\\-]{36}$",
|
|
"type": "string",
|
|
"description": "ID of Endpoint"
|
|
},
|
|
"endpoint_name": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
},
|
|
"endpoint_status": {
|
|
"type": "string",
|
|
"description": "Status of Endpoint"
|
|
},
|
|
"owner_group_or_role": {
|
|
"type": "array",
|
|
"description": "Owner Group or Role",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"endpoint_type": {
|
|
"type": "string",
|
|
"description": "Endpoint Type",
|
|
"enum": [
|
|
"Real-time",
|
|
"Async"
|
|
]
|
|
},
|
|
"service_type": {
|
|
"type": "string",
|
|
"description": "Service Type",
|
|
"enum": [
|
|
"sd",
|
|
"comfy"
|
|
]
|
|
},
|
|
"min_instance_number": {
|
|
"pattern": "^[0-9]+$",
|
|
"type": "string",
|
|
"description": "Minimum number of instances"
|
|
},
|
|
"current_instance_count": {
|
|
"pattern": "^[0-9]+$",
|
|
"type": "string",
|
|
"description": "Current number of instances"
|
|
},
|
|
"startTime": {
|
|
"type": "string",
|
|
"description": "Start Time of Endpoint",
|
|
"format": "date-time"
|
|
},
|
|
"autoscaling": {
|
|
"type": "boolean",
|
|
"description": "Autoscaling"
|
|
},
|
|
"instance_type": {
|
|
"type": "string",
|
|
"description": "Instance Type"
|
|
},
|
|
"max_instance_number": {
|
|
"pattern": "^[0-9]+$",
|
|
"type": "string",
|
|
"description": "Maximum number of instances"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
202
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"ListInferencesResponse": {
|
|
"title": "ListInferenceJobs",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"inferences",
|
|
"last_evaluated_key"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"last_evaluated_key": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"description": "Last Key for Pagination"
|
|
}
|
|
]
|
|
},
|
|
"inferences": {
|
|
"type": "array",
|
|
"items": {
|
|
"required": [
|
|
"InferenceJobId",
|
|
"createTime",
|
|
"image_names",
|
|
"inference_type",
|
|
"owner_group_or_role",
|
|
"params",
|
|
"startTime",
|
|
"status",
|
|
"taskType"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"inference_type": {
|
|
"type": "string",
|
|
"description": "Inference type",
|
|
"enum": [
|
|
"Real-time",
|
|
"Async"
|
|
]
|
|
},
|
|
"owner_group_or_role": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"taskType": {
|
|
"type": "string"
|
|
},
|
|
"InferenceJobId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"image_names": {
|
|
"type": "array",
|
|
"items": {
|
|
"pattern": "^.+\\.*$",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"createTime": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"startTime": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"params": {
|
|
"required": [
|
|
"input_body_s3",
|
|
"sagemaker_inference_endpoint_id",
|
|
"sagemaker_inference_endpoint_name",
|
|
"sagemaker_inference_instance_type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"input_body_s3": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"sagemaker_inference_endpoint_id": {
|
|
"pattern": "^[a-f0-9\\-]{36}$",
|
|
"type": "string",
|
|
"description": "ID of Endpoint"
|
|
},
|
|
"input_body_presign_url": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"output_path": {
|
|
"type": "string"
|
|
},
|
|
"sagemaker_inference_instance_type": {
|
|
"type": "string",
|
|
"description": "Instance Type"
|
|
},
|
|
"sagemaker_inference_endpoint_name": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"StartInferenceJobRealtimeResponse": {
|
|
"title": "StartInferenceJob",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"owner_group_or_role": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"output_presigned_urls": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"taskType": {
|
|
"type": "string"
|
|
},
|
|
"image_names": {
|
|
"type": "array",
|
|
"items": {
|
|
"pattern": "^.+\\.*$",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"InferenceJobId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"payload_string": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"sagemakerRaw": {
|
|
"type": "object"
|
|
},
|
|
"startTime": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"params": {
|
|
"required": [
|
|
"input_body_s3",
|
|
"sagemaker_inference_endpoint_id",
|
|
"sagemaker_inference_endpoint_name",
|
|
"sagemaker_inference_instance_type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"input_body_s3": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"sagemaker_inference_endpoint_id": {
|
|
"pattern": "^[a-f0-9\\-]{36}$",
|
|
"type": "string",
|
|
"description": "ID of Endpoint"
|
|
},
|
|
"input_body_presign_url": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"output_path": {
|
|
"type": "string"
|
|
},
|
|
"sagemaker_inference_instance_type": {
|
|
"type": "string",
|
|
"description": "Instance Type"
|
|
},
|
|
"sagemaker_inference_endpoint_name": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"img_presigned_urls": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"DeleteDatasetsRequest": {
|
|
"title": "DeleteDatasets",
|
|
"required": [
|
|
"dataset_name_list"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"dataset_name_list": {
|
|
"maxItems": 10,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"description": "Name of dataset"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"GetDatasetResponse": {
|
|
"title": "GetDatasetResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"data",
|
|
"datasetName",
|
|
"dataset_name",
|
|
"description",
|
|
"prefix",
|
|
"s3",
|
|
"status",
|
|
"timestamp"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"s3": {
|
|
"type": "string",
|
|
"description": "S3 location of dataset",
|
|
"format": "uri"
|
|
},
|
|
"data": {
|
|
"type": "array",
|
|
"items": {
|
|
"required": [
|
|
"dataStatus",
|
|
"key",
|
|
"name",
|
|
"original_file_name",
|
|
"preview_url",
|
|
"type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"preview_url": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"dataStatus": {
|
|
"type": "string"
|
|
},
|
|
"original_file_name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"prefix": {
|
|
"type": "string",
|
|
"description": "Prefix of dataset"
|
|
},
|
|
"datasetName": {
|
|
"type": "string",
|
|
"description": "Name of dataset"
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Description of dataset"
|
|
},
|
|
"dataset_name": {
|
|
"type": "string",
|
|
"description": "Name of dataset"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Status of dataset"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"description": "Timestamp of dataset"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"CreateDatasetRequest": {
|
|
"title": "CreateDataset",
|
|
"required": [
|
|
"content",
|
|
"creator",
|
|
"dataset_name",
|
|
"prefix"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"creator": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"prefix": {
|
|
"minLength": 0,
|
|
"type": "string"
|
|
},
|
|
"dataset_name": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9_-]*$",
|
|
"type": "string"
|
|
},
|
|
"params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"content": {
|
|
"maxItems": 500,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"params": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"DeleteSchemasRequest": {
|
|
"title": "DeleteSchemas",
|
|
"required": [
|
|
"schema_name_list"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"schema_name_list": {
|
|
"maxItems": 10,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
"type": "string",
|
|
"description": "Name of Workflow Schema"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"CreateSchemaRequest": {
|
|
"title": "CreateSchema",
|
|
"required": [
|
|
"name",
|
|
"payload",
|
|
"workflow"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"workflow": {
|
|
"type": "string"
|
|
},
|
|
"payload": {
|
|
"minLength": 1,
|
|
"type": "string",
|
|
"description": "Payload JSON String of Schema"
|
|
},
|
|
"name": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
"type": "string",
|
|
"description": "Name of Workflow Schema"
|
|
}
|
|
}
|
|
},
|
|
"ListDatasetsResponse": {
|
|
"title": "ListDatasetsResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"datasets",
|
|
"last_evaluated_key"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"last_evaluated_key": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"description": "Last Key for Pagination"
|
|
}
|
|
]
|
|
},
|
|
"datasets": {
|
|
"type": "array",
|
|
"items": {
|
|
"required": [
|
|
"datasetName",
|
|
"description",
|
|
"s3",
|
|
"status",
|
|
"timestamp"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"s3": {
|
|
"type": "string",
|
|
"description": "S3 location of dataset",
|
|
"format": "uri"
|
|
},
|
|
"datasetName": {
|
|
"type": "string",
|
|
"description": "Name of dataset"
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Description of dataset"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Status of dataset"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"description": "Timestamp of dataset"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"GetExecuteResponse": {
|
|
"title": "GetExecuteResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"create_time",
|
|
"endpoint_name",
|
|
"inference_type",
|
|
"need_sync",
|
|
"output_path",
|
|
"prompt_id",
|
|
"prompt_params",
|
|
"prompt_path",
|
|
"start_time",
|
|
"status"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"inference_type": {
|
|
"type": "string",
|
|
"description": "Inference type",
|
|
"enum": [
|
|
"Real-time",
|
|
"Async"
|
|
]
|
|
},
|
|
"prompt_params": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"start_time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"create_time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"endpoint_name": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
},
|
|
"output_path": {
|
|
"type": "string"
|
|
},
|
|
"prompt_path": {
|
|
"type": "string",
|
|
"description": "Prompt Path"
|
|
},
|
|
"prompt_id": {
|
|
"type": "string",
|
|
"description": "Prompt ID",
|
|
"format": "uuid"
|
|
},
|
|
"need_sync": {
|
|
"type": "boolean",
|
|
"description": "Need Sync"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Status of Execute"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"CreateRoleRequest": {
|
|
"title": "CreateRole",
|
|
"required": [
|
|
"permissions",
|
|
"role_name"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"role_name": {
|
|
"minLength": 1,
|
|
"type": "string",
|
|
"description": "Role name"
|
|
},
|
|
"permissions": {
|
|
"maxItems": 20,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"description": "List of permissions",
|
|
"items": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"DeleteCheckpointsRequest": {
|
|
"title": "DeleteCheckpoints",
|
|
"required": [
|
|
"checkpoint_id_list"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"checkpoint_id_list": {
|
|
"maxItems": 100,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"description": "ID of checkpoint",
|
|
"format": "uuid"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"CreateSchemaResponse": {
|
|
"title": "CreateSchemaResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"create_time",
|
|
"name",
|
|
"payload",
|
|
"workflow"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"workflow": {
|
|
"type": "string"
|
|
},
|
|
"create_time": {
|
|
"type": "string"
|
|
},
|
|
"payload": {
|
|
"minLength": 1,
|
|
"type": "string",
|
|
"description": "Payload JSON String of Schema"
|
|
},
|
|
"name": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
"type": "string",
|
|
"description": "Name of Workflow Schema"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
202
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"CreateTrainResponse": {
|
|
"title": "CreateTrainingJob",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"created",
|
|
"id",
|
|
"input_location",
|
|
"output_location",
|
|
"params",
|
|
"status"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"input_location": {
|
|
"type": "string"
|
|
},
|
|
"created": {
|
|
"type": "string",
|
|
"description": "Created Time of Training Job"
|
|
},
|
|
"output_location": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"pattern": "^[a-f0-9\\-]{36}$",
|
|
"type": "string",
|
|
"description": "ID of training job"
|
|
},
|
|
"params": {
|
|
"required": [
|
|
"config_params",
|
|
"training_params",
|
|
"training_type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"training_params": {
|
|
"required": [
|
|
"fm_type",
|
|
"s3_data_path",
|
|
"s3_model_path",
|
|
"s3_toml_path",
|
|
"training_instance_type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"s3_data_path": {
|
|
"type": "string"
|
|
},
|
|
"training_instance_type": {
|
|
"type": "string"
|
|
},
|
|
"s3_model_path": {
|
|
"type": "string"
|
|
},
|
|
"fm_type": {
|
|
"type": "string"
|
|
},
|
|
"s3_toml_path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"training_type": {
|
|
"type": "string",
|
|
"description": "Training Type"
|
|
},
|
|
"config_params": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
}
|
|
}
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Status of training job"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
201
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"202": {
|
|
"title": "Response Model 202",
|
|
"required": [
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
202
|
|
]
|
|
}
|
|
},
|
|
"description": "Schema for an API response with a 202 Accepted status. Since the 202 status indicates that the request has been accepted for processing, this schema does not define any properties for the response body."
|
|
},
|
|
"400": {
|
|
"title": "Response Model 400",
|
|
"required": [
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"requestId": {
|
|
"type": "string",
|
|
"description": "Request ID by API Gateway",
|
|
"format": "uuid"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
400
|
|
]
|
|
}
|
|
},
|
|
"description": "Bad Request"
|
|
},
|
|
"GetExecuteLogsResponse": {
|
|
"title": "GetExecuteLogsResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"results": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"logStream": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"401": {
|
|
"title": "Response Model 401",
|
|
"required": [
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Unauthorized"
|
|
]
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
401
|
|
]
|
|
}
|
|
},
|
|
"description": "Unauthorized"
|
|
},
|
|
"204": {
|
|
"title": "Response Model 204",
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": false,
|
|
"description": "Schema for an API response with a 204 No Content status. Since the 204 status indicates that there is no content in the response, this schema does not define any properties for the response body."
|
|
},
|
|
"DeleteInferenceJobsRequest": {
|
|
"title": "DeleteInferenceJobs",
|
|
"required": [
|
|
"inference_id_list"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"inference_id_list": {
|
|
"maxItems": 100,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"403": {
|
|
"title": "Response Model 403",
|
|
"required": [
|
|
"message",
|
|
"requestId"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"requestId": {
|
|
"type": "string",
|
|
"description": "Request ID by API Gateway",
|
|
"format": "uuid"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Forbidden"
|
|
]
|
|
}
|
|
},
|
|
"description": "Forbidden"
|
|
},
|
|
"DeleteRolesRequest": {
|
|
"title": "DeleteRoles",
|
|
"required": [
|
|
"role_name_list"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"role_name_list": {
|
|
"maxItems": 100,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"404": {
|
|
"title": "Response Model 404",
|
|
"required": [
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
404
|
|
]
|
|
}
|
|
},
|
|
"description": "Not Found"
|
|
},
|
|
"DeleteUsersRequest": {
|
|
"title": "DeleteUsers",
|
|
"required": [
|
|
"user_name_list"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"user_name_list": {
|
|
"maxItems": 100,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"minLength": 1,
|
|
"type": "string",
|
|
"description": "Username for user"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"UpdateCheckpointResponse": {
|
|
"title": "UpdateCheckpointResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"checkpoint"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"checkpoint": {
|
|
"required": [
|
|
"id",
|
|
"params",
|
|
"s3_location",
|
|
"status",
|
|
"type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"s3_location": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"description": "ID of checkpoint",
|
|
"format": "uuid"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"description": "Type of checkpoint",
|
|
"enum": [
|
|
"Stable-diffusion",
|
|
"embeddings",
|
|
"Lora",
|
|
"hypernetworks",
|
|
"ControlNet",
|
|
"VAE",
|
|
"Comfy"
|
|
]
|
|
},
|
|
"params": {
|
|
"required": [
|
|
"created",
|
|
"creator",
|
|
"message",
|
|
"multipart_upload"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"creator": {
|
|
"type": "string"
|
|
},
|
|
"multipart_upload": {
|
|
"type": "object"
|
|
},
|
|
"created": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Status of checkpoint"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"UpdateDatasetsResponse": {
|
|
"title": "UpdateDatasetsResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"datasetName",
|
|
"status"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"datasetName": {
|
|
"type": "string",
|
|
"description": "Name of dataset"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Status of dataset"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"CreateUserRequest": {
|
|
"title": "CreateUser",
|
|
"required": [
|
|
"username"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"password": {
|
|
"type": "string",
|
|
"description": "Password for user"
|
|
},
|
|
"roles": {
|
|
"maxItems": 20,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"description": "Roles for user",
|
|
"items": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"username": {
|
|
"minLength": 1,
|
|
"type": "string",
|
|
"description": "Username for user"
|
|
}
|
|
}
|
|
},
|
|
"ListSchemasResponse": {
|
|
"title": "ListSchemasResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"last_evaluated_key",
|
|
"schemas"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"last_evaluated_key": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"description": "Last Key for Pagination"
|
|
}
|
|
]
|
|
},
|
|
"schemas": {
|
|
"type": "array",
|
|
"items": {
|
|
"required": [
|
|
"create_time",
|
|
"name",
|
|
"payload",
|
|
"workflow"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"workflow": {
|
|
"type": "string"
|
|
},
|
|
"create_time": {
|
|
"type": "string"
|
|
},
|
|
"payload": {
|
|
"minLength": 1,
|
|
"type": "string",
|
|
"description": "Payload JSON String of Schema"
|
|
},
|
|
"name": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
"type": "string",
|
|
"description": "Name of Workflow Schema"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"UpdateSchemaRequest": {
|
|
"title": "UpdateSchema",
|
|
"required": [
|
|
"payload",
|
|
"workflow"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"workflow": {
|
|
"type": "string"
|
|
},
|
|
"payload": {
|
|
"minLength": 1,
|
|
"type": "string",
|
|
"description": "Payload JSON String of Schema"
|
|
}
|
|
}
|
|
},
|
|
"ListExecutesResponse": {
|
|
"title": "ListExecutesResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"executes",
|
|
"last_evaluated_key"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"last_evaluated_key": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"description": "Last Key for Pagination"
|
|
}
|
|
]
|
|
},
|
|
"executes": {
|
|
"type": "array",
|
|
"items": {
|
|
"required": [
|
|
"create_time",
|
|
"endpoint_name",
|
|
"need_sync",
|
|
"prompt_id",
|
|
"start_time",
|
|
"status"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"temp_files": {
|
|
"type": "array"
|
|
},
|
|
"start_time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"output_files": {
|
|
"type": "array"
|
|
},
|
|
"create_time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"endpoint_name": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
},
|
|
"output_path": {
|
|
"type": "string"
|
|
},
|
|
"prompt_id": {
|
|
"type": "string",
|
|
"description": "Prompt ID",
|
|
"format": "uuid"
|
|
},
|
|
"need_sync": {
|
|
"type": "boolean",
|
|
"description": "Need Sync"
|
|
},
|
|
"temp_path": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Status of Execute"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"CreateCheckPointRequest": {
|
|
"title": "CreateCheckPoint",
|
|
"required": [
|
|
"checkpoint_type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"urls": {
|
|
"maxItems": 20,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"checkpoint_type": {
|
|
"type": "string",
|
|
"description": "Type of checkpoint",
|
|
"enum": [
|
|
"Stable-diffusion",
|
|
"embeddings",
|
|
"Lora",
|
|
"hypernetworks",
|
|
"ControlNet",
|
|
"VAE",
|
|
"Comfy"
|
|
]
|
|
},
|
|
"filenames": {
|
|
"maxItems": 20,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"parts_number": {
|
|
"maximum": 100,
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"source_path": {
|
|
"type": "string"
|
|
},
|
|
"params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"target_path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"CreateRoleResponse": {
|
|
"title": "CreateRole",
|
|
"required": [
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
201
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"RootAPIResponse": {
|
|
"title": "RootApi",
|
|
"required": [
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
},
|
|
"description": "Response Model RootAPIResponse"
|
|
},
|
|
"UpdateSchemaResponse": {
|
|
"title": "UpdateSchema",
|
|
"required": [
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"ListWorkflowsResponse": {
|
|
"title": "ListWorkflowsResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"last_evaluated_key",
|
|
"workflows"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"last_evaluated_key": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"description": "Last Key for Pagination"
|
|
}
|
|
]
|
|
},
|
|
"workflows": {
|
|
"type": "array",
|
|
"items": {
|
|
"required": [
|
|
"image_uri",
|
|
"name",
|
|
"payload_json",
|
|
"size",
|
|
"status"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"size": {
|
|
"type": "string"
|
|
},
|
|
"image_uri": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9]*$",
|
|
"type": "string",
|
|
"description": "Name of workflow"
|
|
},
|
|
"payload_json": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"CreateTrainingJobRequest": {
|
|
"title": "CreateTrainingJob",
|
|
"required": [
|
|
"lora_train_type",
|
|
"params"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"lora_train_type": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"params": {
|
|
"required": [
|
|
"config_params",
|
|
"training_params"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"enable_wd14_tagger": {
|
|
"type": "boolean",
|
|
"description": "Enable WD14 Tagger",
|
|
"default": false
|
|
},
|
|
"wd14_tagger_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"character_threshold": {
|
|
"type": "string",
|
|
"description": "Character threshold",
|
|
"default": "0"
|
|
},
|
|
"general_threshold": {
|
|
"type": "string",
|
|
"description": "General threshold",
|
|
"default": "0"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"training_params": {
|
|
"required": [
|
|
"dataset",
|
|
"fm_type",
|
|
"model",
|
|
"training_instance_type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"model": {
|
|
"type": "string",
|
|
"description": "Model"
|
|
},
|
|
"dataset": {
|
|
"type": "string",
|
|
"description": "Dataset"
|
|
},
|
|
"training_instance_type": {
|
|
"type": "string",
|
|
"description": "Training instance type"
|
|
},
|
|
"fm_type": {
|
|
"type": "string",
|
|
"description": "FM type"
|
|
}
|
|
}
|
|
},
|
|
"config_params": {
|
|
"required": [
|
|
"output_name"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"output_name": {
|
|
"minLength": 1,
|
|
"type": "string",
|
|
"description": "Output Model Name"
|
|
}
|
|
},
|
|
"additionalProperties": true,
|
|
"description": "Training Configuration Parameters"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"StartInferenceJobAsyncResponse": {
|
|
"title": "StartInferenceJobAsyncResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"InferenceJobId",
|
|
"status"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"InferenceJobId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"CreateEndpointRequest": {
|
|
"title": "CreateEndpoint",
|
|
"required": [
|
|
"assign_to_roles",
|
|
"autoscaling_enabled",
|
|
"endpoint_type",
|
|
"initial_instance_count",
|
|
"instance_type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"assign_to_roles": {
|
|
"maxItems": 10,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"endpoint_type": {
|
|
"type": "string",
|
|
"description": "Endpoint Type",
|
|
"enum": [
|
|
"Real-time",
|
|
"Async"
|
|
]
|
|
},
|
|
"service_type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"sd",
|
|
"comfy"
|
|
]
|
|
},
|
|
"min_instance_number": {
|
|
"minimum": 0,
|
|
"type": "number"
|
|
},
|
|
"workflow_name": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9]*$",
|
|
"type": "string",
|
|
"description": "Name of workflow"
|
|
},
|
|
"endpoint_name": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
},
|
|
"custom_docker_image_uri": {
|
|
"type": "string"
|
|
},
|
|
"autoscaling_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"initial_instance_count": {
|
|
"minimum": 1,
|
|
"type": "number"
|
|
},
|
|
"instance_type": {
|
|
"type": "string",
|
|
"description": "Instance Type"
|
|
},
|
|
"max_instance_number": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"MergeExecuteRequest": {
|
|
"title": "MergeExecute",
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"UpdateDatasetRequest": {
|
|
"title": "UpdateDataset",
|
|
"required": [
|
|
"status"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"status": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"ExecuteRequest": {
|
|
"title": "Execute",
|
|
"required": [
|
|
"endpoint_name",
|
|
"need_sync",
|
|
"prompt",
|
|
"prompt_id"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"workflow": {
|
|
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
"type": "string",
|
|
"description": "Workflow remark"
|
|
},
|
|
"need_prepare": {
|
|
"minLength": 1,
|
|
"type": "boolean"
|
|
},
|
|
"workflow_name": {
|
|
"type": "string"
|
|
},
|
|
"endpoint_name": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
},
|
|
"prepare_props": {
|
|
"minItems": 1,
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"need_sync": {
|
|
"type": "boolean",
|
|
"description": "Need Sync"
|
|
},
|
|
"client_id": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"number": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"extra_data": {
|
|
"minLength": 1,
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"multi_async": {
|
|
"minLength": 1,
|
|
"type": "boolean"
|
|
},
|
|
"front": {
|
|
"minLength": 1,
|
|
"type": "boolean"
|
|
},
|
|
"prompt_id": {
|
|
"type": "string",
|
|
"description": "Prompt ID",
|
|
"format": "uuid"
|
|
},
|
|
"prompt": {
|
|
"minItems": 1,
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
}
|
|
}
|
|
},
|
|
"DeleteExecutesApiRequest": {
|
|
"title": "DeleteExecutesApi",
|
|
"required": [
|
|
"execute_id_list"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"execute_id_list": {
|
|
"maxItems": 20,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"UpdateCheckpointNameResponse": {
|
|
"required": [
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "number",
|
|
"description": "The HTTP status code of the response."
|
|
}
|
|
}
|
|
},
|
|
"CropDatasetResponse": {
|
|
"title": "CropDatasetResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"dataset_name"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"dataset_name": {
|
|
"type": "string",
|
|
"description": "Name of dataset"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
202
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"PrepareRequest": {
|
|
"title": "Prepare",
|
|
"required": [
|
|
"endpoint_name",
|
|
"need_reboot"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"s3_source_path": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"local_target_path": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"prepare_id": {
|
|
"type": "string"
|
|
},
|
|
"endpoint_name": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
},
|
|
"need_reboot": {
|
|
"type": "boolean"
|
|
},
|
|
"sync_script": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"prepare_type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"default",
|
|
"inputs",
|
|
"nodes",
|
|
"models",
|
|
"custom",
|
|
"other"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"CreateExecuteResponse": {
|
|
"title": "CreateExecuteResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"create_time",
|
|
"endpoint_name",
|
|
"inference_type",
|
|
"need_sync",
|
|
"output_path",
|
|
"prompt_id",
|
|
"start_time",
|
|
"status"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"temp_files": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object"
|
|
}
|
|
},
|
|
"create_time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"endpoint_name": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
},
|
|
"prompt_path": {
|
|
"type": "string"
|
|
},
|
|
"need_sync": {
|
|
"type": "boolean"
|
|
},
|
|
"client_id": {
|
|
"type": "string"
|
|
},
|
|
"inference_type": {
|
|
"type": "string",
|
|
"description": "Inference type",
|
|
"enum": [
|
|
"Real-time",
|
|
"Async"
|
|
]
|
|
},
|
|
"number": {
|
|
"type": "integer"
|
|
},
|
|
"start_time": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"output_files": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"instance_id": {
|
|
"type": "string"
|
|
},
|
|
"extra_data": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"output_path": {
|
|
"type": "string"
|
|
},
|
|
"front": {
|
|
"type": "string"
|
|
},
|
|
"prompt_id": {
|
|
"type": "string"
|
|
},
|
|
"temp_path": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200,
|
|
201
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"DeleteTrainingJobsRequest": {
|
|
"title": "DeleteTrainingJobs",
|
|
"required": [
|
|
"training_id_list"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"training_id_list": {
|
|
"maxItems": 100,
|
|
"minItems": 1,
|
|
"type": "array",
|
|
"items": {
|
|
"pattern": "^[a-f0-9\\-]{36}$",
|
|
"type": "string",
|
|
"description": "ID of training job"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"ListEndpointsResponse": {
|
|
"title": "ListEndpointsResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"endpoints",
|
|
"last_evaluated_key"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"last_evaluated_key": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string",
|
|
"description": "Last Key for Pagination"
|
|
}
|
|
]
|
|
},
|
|
"endpoints": {
|
|
"type": "array",
|
|
"items": {
|
|
"required": [
|
|
"EndpointDeploymentJobId",
|
|
"autoscaling",
|
|
"current_instance_count",
|
|
"endpoint_name",
|
|
"endpoint_status",
|
|
"endpoint_type",
|
|
"instance_type",
|
|
"max_instance_number",
|
|
"min_instance_number",
|
|
"owner_group_or_role",
|
|
"service_type",
|
|
"startTime"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"custom_extensions": {
|
|
"type": "string",
|
|
"description": "Custom Extensions"
|
|
},
|
|
"EndpointDeploymentJobId": {
|
|
"pattern": "^[a-f0-9\\-]{36}$",
|
|
"type": "string",
|
|
"description": "ID of Endpoint"
|
|
},
|
|
"endpoint_name": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
},
|
|
"endpoint_status": {
|
|
"type": "string",
|
|
"description": "Status of Endpoint"
|
|
},
|
|
"owner_group_or_role": {
|
|
"type": "array",
|
|
"description": "Owner Group or Role",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"endpoint_type": {
|
|
"type": "string",
|
|
"description": "Endpoint Type",
|
|
"enum": [
|
|
"Real-time",
|
|
"Async"
|
|
]
|
|
},
|
|
"service_type": {
|
|
"type": "string",
|
|
"description": "Service Type",
|
|
"enum": [
|
|
"sd",
|
|
"comfy"
|
|
]
|
|
},
|
|
"min_instance_number": {
|
|
"pattern": "^[0-9]+$",
|
|
"type": "string",
|
|
"description": "Minimum number of instances"
|
|
},
|
|
"current_instance_count": {
|
|
"pattern": "^[0-9]+$",
|
|
"type": "string",
|
|
"description": "Current number of instances"
|
|
},
|
|
"startTime": {
|
|
"type": "string",
|
|
"description": "Start Time of Endpoint",
|
|
"format": "date-time"
|
|
},
|
|
"autoscaling": {
|
|
"type": "boolean",
|
|
"description": "Autoscaling"
|
|
},
|
|
"instance_type": {
|
|
"type": "string",
|
|
"description": "Instance Type"
|
|
},
|
|
"max_instance_number": {
|
|
"pattern": "^[0-9]+$",
|
|
"type": "string",
|
|
"description": "Maximum number of instances"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
200
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"CreateCheckpointResponse": {
|
|
"title": "CreateCheckpointResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"checkpoint",
|
|
"s3PresignUrl"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"checkpoint": {
|
|
"required": [
|
|
"id",
|
|
"params",
|
|
"s3_location",
|
|
"status",
|
|
"type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"s3_location": {
|
|
"type": "string",
|
|
"description": "S3 location of the checkpoint"
|
|
},
|
|
"id": {
|
|
"type": "string",
|
|
"description": "ID of checkpoint",
|
|
"format": "uuid"
|
|
},
|
|
"source_path": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"description": "Type of checkpoint",
|
|
"enum": [
|
|
"Stable-diffusion",
|
|
"embeddings",
|
|
"Lora",
|
|
"hypernetworks",
|
|
"ControlNet",
|
|
"VAE",
|
|
"Comfy"
|
|
]
|
|
},
|
|
"params": {
|
|
"required": [
|
|
"created",
|
|
"creator",
|
|
"message",
|
|
"multipart_upload"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"creator": {
|
|
"type": "string"
|
|
},
|
|
"multipart_upload": {
|
|
"type": "object",
|
|
"properties": {
|
|
".*": {
|
|
"required": [
|
|
"bucket",
|
|
"key",
|
|
"upload_id"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"bucket": {
|
|
"type": "string"
|
|
},
|
|
"upload_id": {
|
|
"type": "string"
|
|
},
|
|
"key": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"created": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"target_path": {
|
|
"oneOf": [
|
|
{
|
|
"type": "null",
|
|
"description": "Last Key for Pagination"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Status of checkpoint"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"s3PresignUrl": {
|
|
"type": "object",
|
|
"properties": {
|
|
".*": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"CreateDatasetResponse": {
|
|
"title": "CreateDatasetResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"datasetName",
|
|
"s3PresignUrl"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"s3PresignUrl": {
|
|
"type": "object"
|
|
},
|
|
"datasetName": {
|
|
"type": "string",
|
|
"description": "Name of dataset"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer",
|
|
"enum": [
|
|
201
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"GetWorkflowResponse": {
|
|
"title": "GetWorkflow",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"required": [
|
|
"image_uri",
|
|
"name",
|
|
"payload_json",
|
|
"size",
|
|
"status"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"size": {
|
|
"type": "string"
|
|
},
|
|
"image_uri": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9]*$",
|
|
"type": "string",
|
|
"description": "Name of workflow"
|
|
},
|
|
"payload_json": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"504": {
|
|
"title": "Response Model 504",
|
|
"required": [
|
|
"message",
|
|
"requestId"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"requestId": {
|
|
"type": "string",
|
|
"description": "Request ID by API Gateway",
|
|
"format": "uuid"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
}
|
|
},
|
|
"description": "Gateway Timeout"
|
|
},
|
|
"CreateCheckpointUrlResponse": {
|
|
"required": [
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"CreateWorkflowRequest": {
|
|
"title": "CreateWorkflow",
|
|
"required": [
|
|
"image_uri",
|
|
"name",
|
|
"payload_json",
|
|
"size"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"size": {
|
|
"type": "string"
|
|
},
|
|
"image_uri": {
|
|
"minLength": 1,
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9]*$",
|
|
"type": "string",
|
|
"description": "Name of workflow"
|
|
},
|
|
"payload_json": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"CreateInferenceJobRealtimeResponse": {
|
|
"title": "CreateInferenceJobRealtimeResponse",
|
|
"required": [
|
|
"data",
|
|
"debug",
|
|
"message",
|
|
"statusCode"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"debug": {
|
|
"title": "Response Model Debug",
|
|
"required": [
|
|
"function_url",
|
|
"log_url",
|
|
"trace_url"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"trace_url": {
|
|
"type": "string",
|
|
"description": "URL to X-Ray Trace",
|
|
"format": "uri"
|
|
},
|
|
"function_url": {
|
|
"type": "string",
|
|
"description": "URL to Lambda Function",
|
|
"format": "uri"
|
|
},
|
|
"log_url": {
|
|
"type": "string",
|
|
"description": "URL to CloudWatch Logs",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"description": "Debugging information for Lambda Function"
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"owner_group_or_role": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"output_presigned_urls": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"taskType": {
|
|
"type": "string"
|
|
},
|
|
"image_names": {
|
|
"type": "array",
|
|
"items": {
|
|
"pattern": "^.+\\.*$",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"InferenceJobId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"payload_string": {
|
|
"type": "string"
|
|
},
|
|
"createTime": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"sagemakerRaw": {
|
|
"type": "object"
|
|
},
|
|
"startTime": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"params": {
|
|
"required": [
|
|
"input_body_s3",
|
|
"sagemaker_inference_endpoint_id",
|
|
"sagemaker_inference_endpoint_name",
|
|
"sagemaker_inference_instance_type"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"input_body_s3": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"sagemaker_inference_endpoint_id": {
|
|
"pattern": "^[a-f0-9\\-]{36}$",
|
|
"type": "string",
|
|
"description": "ID of Endpoint"
|
|
},
|
|
"input_body_presign_url": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
},
|
|
"output_path": {
|
|
"type": "string"
|
|
},
|
|
"sagemaker_inference_instance_type": {
|
|
"type": "string",
|
|
"description": "Instance Type"
|
|
},
|
|
"sagemaker_inference_endpoint_name": {
|
|
"type": "string",
|
|
"description": "Name of endpoint"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"img_presigned_urls": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"format": "uri"
|
|
}
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
},
|
|
"message": {
|
|
"type": "string",
|
|
"description": "API Operate Message"
|
|
},
|
|
"statusCode": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
"SyncMsgRequest": {
|
|
"title": "SyncMsg",
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"UpdateCheckPointRequest": {
|
|
"title": "UpdateCheckPoint",
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 20,
|
|
"minLength": 1,
|
|
"pattern": "^[A-Za-z][A-Za-z0-9_-]*$",
|
|
"type": "string"
|
|
},
|
|
"multi_parts_tags": {
|
|
"type": "object"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Status of checkpoint"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"securitySchemes": {
|
|
"api_key": {
|
|
"type": "apiKey",
|
|
"name": "x-api-key",
|
|
"in": "header"
|
|
}
|
|
}
|
|
},
|
|
"x-amazon-apigateway-policy": {
|
|
"Version": "2012-10-17",
|
|
"Statement": [
|
|
{
|
|
"Effect": "Allow",
|
|
"Principal": {
|
|
"AWS": "*"
|
|
},
|
|
"Action": "execute-api:Invoke",
|
|
"Resource": "*"
|
|
}
|
|
]
|
|
},
|
|
"tags": [
|
|
{
|
|
"name": "Service",
|
|
"description": "Service API"
|
|
},
|
|
{
|
|
"name": "Roles",
|
|
"description": "Manage Roles"
|
|
},
|
|
{
|
|
"name": "Users",
|
|
"description": "Manage Users"
|
|
},
|
|
{
|
|
"name": "Endpoints",
|
|
"description": "Manage Endpoints"
|
|
},
|
|
{
|
|
"name": "Checkpoints",
|
|
"description": "Manage Checkpoints",
|
|
"externalDocs": {
|
|
"url": "https://awslabs.github.io/stable-diffusion-aws-extension/en/developer-guide/api_upload_ckpt/",
|
|
"description": "Upload Checkpoint Process"
|
|
}
|
|
},
|
|
{
|
|
"name": "Inferences",
|
|
"description": "Manage Inferences",
|
|
"externalDocs": {
|
|
"url": "https://awslabs.github.io/stable-diffusion-aws-extension/en/developer-guide/api_inference_process/",
|
|
"description": "Inference Process"
|
|
}
|
|
},
|
|
{
|
|
"name": "Executes",
|
|
"description": "Manage Executes"
|
|
},
|
|
{
|
|
"name": "Datasets",
|
|
"description": "Manage Datasets"
|
|
},
|
|
{
|
|
"name": "Trainings",
|
|
"description": "Manage Trainings"
|
|
},
|
|
{
|
|
"name": "Prepare",
|
|
"description": "Sync files to Endpoint"
|
|
},
|
|
{
|
|
"name": "Sync",
|
|
"description": "Sync Message from Endpoint"
|
|
},
|
|
{
|
|
"name": "Workflows",
|
|
"description": "Manage Workflows"
|
|
},
|
|
{
|
|
"name": "Schemas",
|
|
"description": "Manage Schemas"
|
|
},
|
|
{
|
|
"name": "Others",
|
|
"description": "Others API"
|
|
}
|
|
]
|
|
} |