|
|
|
@ -4654,6 +4654,285 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"delete": { |
|
|
|
|
"operationId": "text_processing_api-delete-task", |
|
|
|
|
"summary": "This endpoint allows to delete a scheduled task for a user", |
|
|
|
|
"tags": [ |
|
|
|
|
"text_processing_api" |
|
|
|
|
], |
|
|
|
|
"security": [ |
|
|
|
|
{ |
|
|
|
|
"bearer_auth": [] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"basic_auth": [] |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"name": "id", |
|
|
|
|
"in": "path", |
|
|
|
|
"description": "The id of the task", |
|
|
|
|
"required": true, |
|
|
|
|
"schema": { |
|
|
|
|
"type": "integer", |
|
|
|
|
"format": "int64" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "OCS-APIRequest", |
|
|
|
|
"in": "header", |
|
|
|
|
"required": true, |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string", |
|
|
|
|
"default": "true" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"description": "Task returned", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"ocs" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"ocs": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"meta", |
|
|
|
|
"data" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"meta": { |
|
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
|
}, |
|
|
|
|
"data": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"task" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"task": { |
|
|
|
|
"$ref": "#/components/schemas/TextProcessingTask" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"404": { |
|
|
|
|
"description": "Task not found", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"ocs" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"ocs": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"meta", |
|
|
|
|
"data" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"meta": { |
|
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
|
}, |
|
|
|
|
"data": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"message" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"message": { |
|
|
|
|
"type": "string" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"500": { |
|
|
|
|
"description": "", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"ocs" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"ocs": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"meta", |
|
|
|
|
"data" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"meta": { |
|
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
|
}, |
|
|
|
|
"data": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"message" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"message": { |
|
|
|
|
"type": "string" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/ocs/v2.php/textprocessing/tasks/app/{appId}": { |
|
|
|
|
"get": { |
|
|
|
|
"operationId": "text_processing_api-list-tasks-by-app", |
|
|
|
|
"summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier", |
|
|
|
|
"tags": [ |
|
|
|
|
"text_processing_api" |
|
|
|
|
], |
|
|
|
|
"security": [ |
|
|
|
|
{ |
|
|
|
|
"bearer_auth": [] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"basic_auth": [] |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"name": "identifier", |
|
|
|
|
"in": "query", |
|
|
|
|
"description": "An arbitrary identifier for the task", |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string", |
|
|
|
|
"nullable": true |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "appId", |
|
|
|
|
"in": "path", |
|
|
|
|
"description": "ID of the app", |
|
|
|
|
"required": true, |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "OCS-APIRequest", |
|
|
|
|
"in": "header", |
|
|
|
|
"required": true, |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string", |
|
|
|
|
"default": "true" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"responses": { |
|
|
|
|
"200": { |
|
|
|
|
"description": "Task list returned", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"ocs" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"ocs": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"meta", |
|
|
|
|
"data" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"meta": { |
|
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
|
}, |
|
|
|
|
"data": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"tasks" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"tasks": { |
|
|
|
|
"type": "array", |
|
|
|
|
"items": { |
|
|
|
|
"$ref": "#/components/schemas/TextProcessingTask" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"500": { |
|
|
|
|
"description": "", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"ocs" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"ocs": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"meta", |
|
|
|
|
"data" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"meta": { |
|
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
|
}, |
|
|
|
|
"data": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"message" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"message": { |
|
|
|
|
"type": "string" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/status.php": { |
|
|
|
|