openapi changes

This commit is contained in:
Quaternions 2024-11-25 21:18:11 -08:00
parent cba11bbb22
commit 1dabf78f32

View File

@ -1,17 +1,23 @@
openapi: 3.1.0 openapi: 3.1.0
info: info:
title: StrafesNET Maps - OpenAPI 3.0 title: StrafesNET Maptest - OpenAPI 3.1
description: Browse and manage maps. description: Browse and manage maps in the staging pipeline.
version: 0.1.0 version: 0.1.0
servers: servers:
- url: https://maps.strafes.net/v1 - url: https://maptest.strafes.net/v1
tags: tags:
- name: Maps - name: Maps
description: Map operations description: Map operations
paths: paths:
# create
# status
# submit
# accept
# publish
# complete
/maps: /maps:
get: get:
summary: Get list of maps summary: Get list of submissions
operationId: listMaps operationId: listMaps
tags: tags:
- Maps - Maps
@ -41,6 +47,30 @@ paths:
application/json: application/json:
schema: schema:
$ref: "#/components/schemas/Error" $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}: /maps/{MapID}:
get: get:
summary: Retrieve map with ID summary: Retrieve map with ID