61 lines
1.4 KiB
JSON
61 lines
1.4 KiB
JSON
{
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "Janex API Documentation.",
|
|
"version": "0.0.1"
|
|
},
|
|
"host": "janex",
|
|
"basePath": "/v1",
|
|
"paths": {
|
|
"/grouptasks/start": {
|
|
"post": {
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"tags": [
|
|
"grouptasks"
|
|
],
|
|
"summary": "Start a new group task",
|
|
"operationId": "grouptasksStart",
|
|
"parameters": [
|
|
{
|
|
"description": "You can create a new api key in your user profile",
|
|
"name": "X-Api-Key",
|
|
"in": "header"
|
|
},
|
|
{
|
|
"description": "JSON -\u003e Category str, GroupId str, Description str, GlobalInputs [{key, value}, {...}]",
|
|
"name": "body",
|
|
"in": "body"
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "New group task created successfully"
|
|
},
|
|
"400": {
|
|
"description": "Invalid request body"
|
|
},
|
|
"401": {
|
|
"description": "No permissions"
|
|
},
|
|
"422": {
|
|
"description": "No group tasks in this category or provided global inputs incomplete"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |