openapi: add release-submissions endpoint
This commit is contained in:
parent
c04ba33f9c
commit
bc8b7b68d2
37
openapi.yaml
37
openapi.yaml
@ -247,6 +247,31 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/Error"
|
$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:
|
/script-policy:
|
||||||
get:
|
get:
|
||||||
summary: Get list of script policies
|
summary: Get list of script policies
|
||||||
@ -638,6 +663,18 @@ components:
|
|||||||
TargetAssetID:
|
TargetAssetID:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
ReleaseInfo:
|
||||||
|
required:
|
||||||
|
- SubmissionID
|
||||||
|
- Date
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
SubmissionID:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
Date:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
Script:
|
Script:
|
||||||
required:
|
required:
|
||||||
- ID
|
- ID
|
||||||
|
Loading…
Reference in New Issue
Block a user