From 1dabf78f32d7e9403fd308d6f5568a83516844f6 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 25 Nov 2024 21:18:11 -0800 Subject: [PATCH] openapi changes --- openapi.yaml | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 3f1d261..b3c7d62 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,17 +1,23 @@ openapi: 3.1.0 info: - title: StrafesNET Maps - OpenAPI 3.0 - description: Browse and manage maps. + title: StrafesNET Maptest - OpenAPI 3.1 + description: Browse and manage maps in the staging pipeline. version: 0.1.0 servers: - - url: https://maps.strafes.net/v1 + - url: https://maptest.strafes.net/v1 tags: - name: Maps description: Map operations paths: +# create +# status +# submit +# accept +# publish +# complete /maps: get: - summary: Get list of maps + summary: Get list of submissions operationId: listMaps tags: - Maps @@ -41,6 +47,30 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" + post: + summary: Create new submission + operationId: createMap + tags: + - Maps + parameters: + - name: map + in: query + required: true + schema: + $ref: "#/components/schemas/MapCreate" + responses: + "200": + description: Successful response + content: + application/json: + schema: + $ref: "#/components/schemas/Map" + default: + description: General Error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" /maps/{MapID}: get: summary: Retrieve map with ID