I didn't write the documentation in OpenAPI format because it doesn't provide real support for WebSockets endpoints.
-
api_key - API key that identifies the caller
Type: string
Required: true
-
workspace_id- ID of the current workspace
Type: string
Required: false
Format:
^[A-z\-\_\d]+$
Default:
default
Streamed lines of Array<Task>.
[]
[{"id":2,"name":"abc","type":"gx.tiny","status":"running"}]
[{"id":2,"name":"abc","type":"gx.tiny","status":"completed"}]
[{"id":2,"name":"abc","type":"gx.tiny","status":"completed"}]
# asdas
$ websocat 'wss://<host>/ws/tasks?api_key=<api_key>&workspace_id=<workspace_id>'
-
api_key - API key that identifies the caller
Type: string
Required: true
-
workspace_id- ID of the current workspace
Type: string
Required: false
Format:
^[A-z\-\_\d]+$
Default:
default
{ "tasks": Array<Task> }.
{"tasks":[{"id":3,"name":"abc","type":"gx.tiny","status":"running"}]}
-
api_key - API key that identifies the caller
Type: string
Required: true
-
workspace_id- ID of the current workspace
Type: string
Required: false
Format:
^[A-z\-\_\d]+$
Default:
default
-
name - Name of the task
Type: string
Required: true
-
type - Type of the task
Type: string
Required: true
Format:
^[A-z\-\_\d]+$
Default:
default
Available values:
gx.tiny
,gx.micro
,gx.small
,gx.medium
,gx.large
,gx.heavy
Item of type { "task": <Task> }.
{"task":{"id":3,"name":"abc","type":"gx.tiny","status":"queued"}}
# asdas
$ curl -X POST 'https://<host>/tasks?api_key=<api_key>&workspace_id=<workspace_id>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Task name",
"type": "gx.tiny"
}'
-
api_key - API key that identifies the caller
Type: string
Required: true
-
workspace_id- ID of the current workspace
Type: string
Required: false
Format:
^[A-z\-\_\d]+$
Default:
default
Nothing but 204 No Content.
# asdas
$ curl -X DELETE 'https://<host>/tasks/<id>?api_key=<api_key>&workspace_id=<workspace_id>'
-
api_key - API key that identifies the caller
Type: string
Required: true
-
workspace_id- ID of the current workspace
Type: string
Required: false
Format:
^[A-z\-\_\d]+$
Default:
default
Nothing but 204 No Content.
# asdas
$ curl -X POST 'https://<host>/tasks/flush?api_key=<api_key>&workspace_id=<workspace_id>'