From ce5d84a646a69b30dba6e808f2e2e107f535c776 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 3 Dec 2024 19:29:59 -0800 Subject: [PATCH] openapi: add scripts operations --- openapi.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index ab3cb42..8cab3d7 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -8,6 +8,8 @@ servers: tags: - name: Submissions description: Submission operations + - name: Scripts + description: Script operations security: - cookieAuth: [] paths: @@ -324,6 +326,36 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" + /scripts/replacements: + get: + summary: Get the replacements for the provided list of scripts + operationId: getReplacementScripts + tags: + - Scripts + requestBody: + content: + application/json: + schema: + type: array + items: + type: string + responses: + "200": + description: Successful response + content: + application/json: + schema: + type: array + items: + oneOf: + - type: null + - type: string + default: + description: General Error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" components: securitySchemes: cookieAuth: