openapi: admin create endpoint
This commit is contained in:
parent
3a124b8190
commit
2f36877cb6
@ -712,6 +712,8 @@ components:
|
|||||||
- GameID
|
- GameID
|
||||||
- AssetID
|
- AssetID
|
||||||
- AssetVersion
|
- AssetVersion
|
||||||
|
- Status
|
||||||
|
- Roles
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
OperationID:
|
OperationID:
|
||||||
@ -740,6 +742,14 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
minimum: 0
|
minimum: 0
|
||||||
|
Status:
|
||||||
|
type: integer
|
||||||
|
format: uint32
|
||||||
|
minimum: 0
|
||||||
|
maximum: 9
|
||||||
|
Roles:
|
||||||
|
type: integer
|
||||||
|
format: uint32
|
||||||
Script:
|
Script:
|
||||||
required:
|
required:
|
||||||
- ID
|
- ID
|
||||||
|
25
openapi.yaml
25
openapi.yaml
@ -654,6 +654,31 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/Error"
|
$ref: "#/components/schemas/Error"
|
||||||
|
/submissions-admin:
|
||||||
|
post:
|
||||||
|
summary: Trigger the validator to create a new submission
|
||||||
|
operationId: createSubmissionAdmin
|
||||||
|
tags:
|
||||||
|
- Submissions
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/SubmissionTriggerCreate'
|
||||||
|
responses:
|
||||||
|
"201":
|
||||||
|
description: Successful response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/OperationID"
|
||||||
|
default:
|
||||||
|
description: General Error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/Error"
|
||||||
/submissions/{SubmissionID}:
|
/submissions/{SubmissionID}:
|
||||||
get:
|
get:
|
||||||
summary: Retrieve map with ID
|
summary: Retrieve map with ID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user