From 9ebc8c4d25acaf82208ff7b6545dd64c2b2950fc Mon Sep 17 00:00:00 2001 From: solimant Date: Tue, 10 Sep 2024 01:38:15 +0000 Subject: [PATCH] Add GetTask Signed-off-by: solimant --- .../src/schema/openapi.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/plugins/scaffolder-backend/src/schema/openapi.yaml b/plugins/scaffolder-backend/src/schema/openapi.yaml index 51e7035c6b..0b6a5d1d44 100644 --- a/plugins/scaffolder-backend/src/schema/openapi.yaml +++ b/plugins/scaffolder-backend/src/schema/openapi.yaml @@ -34,6 +34,13 @@ components: allowReserved: true schema: type: string + taskId: + name: taskId + in: path + required: true + allowReserved: true + schema: + type: string requestBodies: {} responses: ErrorResponse: @@ -652,3 +659,20 @@ paths: - {} - JWT: [] parameters: [] + + /v2/tasks/{taskId}: + get: + operationId: GetTask + description: Get a task by ID. + responses: + '200': + description: Ok + content: + application/json: + schema: + $ref: '#/components/schemas/SerializedTask' + security: + - {} + - JWT: [] + parameters: + - $ref: '#/components/parameters/taskId'