API: group worker-related endpoints
This commit is contained in:
parent
f43673aaa7
commit
3d2263c177
@ -12,11 +12,12 @@ info:
|
||||
servers:
|
||||
- url: /
|
||||
paths:
|
||||
/api/register-worker:
|
||||
/api/worker/register-worker:
|
||||
summary: Registration of new workers
|
||||
post:
|
||||
description: Register a new worker.
|
||||
summary: Register a new worker
|
||||
operationId: registerWorker
|
||||
tags: [worker]
|
||||
requestBody:
|
||||
description: Worker to register
|
||||
required: true
|
||||
@ -38,12 +39,13 @@ paths:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Error'
|
||||
|
||||
/api/task:
|
||||
/api/worker/task:
|
||||
summary: Task scheduler endpoint.
|
||||
post:
|
||||
operationId: scheduleTask
|
||||
summary: Obtain a new task to execute.
|
||||
summary: Obtain a new task to execute
|
||||
security: [{worker_auth: []}]
|
||||
tags: [worker]
|
||||
responses:
|
||||
"204":
|
||||
description: No tasks available for this Worker.
|
||||
@ -58,6 +60,10 @@ paths:
|
||||
application/json:
|
||||
schema: {$ref: "#/components/schemas/SecurityError"}
|
||||
|
||||
tags:
|
||||
- name: worker
|
||||
description: API for Flamenco Workers to communicate with Flamenco Manager.
|
||||
|
||||
components:
|
||||
schemas:
|
||||
WorkerRegistration:
|
||||
|
Loading…
x
Reference in New Issue
Block a user