From 87dc61c99f9981e91f522061d54220d74ee3fb3e Mon Sep 17 00:00:00 2001 From: Louis Rose Date: Fri, 22 Mar 2024 09:44:59 +0000 Subject: [PATCH] includes GET /jobs/successful --- openapi/spec.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/openapi/spec.yaml b/openapi/spec.yaml index 7e2fa36..595bec3 100644 --- a/openapi/spec.yaml +++ b/openapi/spec.yaml @@ -643,6 +643,43 @@ paths: application/json: schema: $ref: '#/components/schemas/Job' + /jobs/successful: + get: + tags: + - Jobs + summary: Retrieve a list of all successful jobs + description: Retrieve a list of all successful jobs + operationId: listSuccessfulJobs + parameters: + - in: query + name: limit + required: false + schema: + type: integer + default: 50 + description: Limit the number of results (max 50) + example: 25 + - in: query + name: after + required: false + schema: + type: integer + description: Retrieve jobs after the specified jobId + example: 42 + - in: query + name: before + required: false + schema: + type: integer + description: Retrieve jobs after the specified jobId + example: 42 + responses: + '200': + description: A list of all successful jobs. + content: + application/json: + schema: + $ref: '#/components/schemas/Jobs' '/jobs/{jobId}': get: tags: