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:
|
||||
- name: Submissions
|
||||
description: Submission operations
|
||||
- name: Scripts
|
||||
description: Script operations
|
||||
security:
|
||||
- cookieAuth: []
|
||||
paths:
|
||||
@ -324,6 +326,36 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$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:
|
||||
securitySchemes:
|
||||
cookieAuth:
|
||||
|
Loading…
Reference in New Issue
Block a user