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'