openapi: add scripts operations
This commit is contained in:
parent
799346aee6
commit
ce5d84a646
32
openapi.yaml
32
openapi.yaml
@ -8,6 +8,8 @@ servers:
|
|||||||
tags:
|
tags:
|
||||||
- name: Submissions
|
- name: Submissions
|
||||||
description: Submission operations
|
description: Submission operations
|
||||||
|
- name: Scripts
|
||||||
|
description: Script operations
|
||||||
security:
|
security:
|
||||||
- cookieAuth: []
|
- cookieAuth: []
|
||||||
paths:
|
paths:
|
||||||
@ -324,6 +326,36 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/Error"
|
$ref: "#/components/schemas/Error"
|
||||||
|
/scripts/replacements:
|
||||||
|
get:
|
||||||
|
summary: Get the replacements for the provided list of scripts
|
||||||
|
operationId: getReplacementScripts
|
||||||
|
tags:
|
||||||
|
- Scripts
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: Successful response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
oneOf:
|
||||||
|
- type: null
|
||||||
|
- type: string
|
||||||
|
default:
|
||||||
|
description: General Error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/Error"
|
||||||
components:
|
components:
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
cookieAuth:
|
cookieAuth:
|
||||||
|
Loading…
Reference in New Issue
Block a user