From bc8b7b68d21aa834507f9c7a2b4958ac55fbd361 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 30 Dec 2024 19:12:52 -0800 Subject: [PATCH] openapi: add release-submissions endpoint --- openapi.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index f0a9863..0e3ceb8 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -247,6 +247,31 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" + /release-submissions: + post: + summary: Release a set of uploaded maps + operationId: releaseSubmissions + tags: + - Submissions + requestBody: + required: true + content: + application/json: + schema: + type: array + minItems: 1 + maxItems: 255 + items: + $ref: '#/components/schemas/ReleaseInfo' + responses: + "201": + description: Successful response + default: + description: General Error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" /script-policy: get: summary: Get list of script policies @@ -638,6 +663,18 @@ components: TargetAssetID: type: integer format: int64 + ReleaseInfo: + required: + - SubmissionID + - Date + type: object + properties: + SubmissionID: + type: integer + format: int64 + Date: + type: string + format: date-time Script: required: - ID