56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
paths:
|
|
/games:
|
|
get:
|
|
responses:
|
|
200:
|
|
$ref: "#/components/responses/gameListResponse"
|
|
/engine/{uid}:
|
|
get:
|
|
operationId: gameEngine
|
|
parameters:
|
|
- name: uid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
responses:
|
|
200:
|
|
$ref: "#/components/responses/taskResponse"
|
|
/engine/{uid}/code:
|
|
post:
|
|
operationId: enterCode
|
|
parameters:
|
|
- name: uid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
code:
|
|
type: string
|
|
required:
|
|
- code
|
|
responses:
|
|
200:
|
|
$ref: "#/components/responses/taskResponse"
|
|
/file/{uid}:
|
|
get:
|
|
operationId: getFile
|
|
parameters:
|
|
- name: uid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
response:
|
|
307:
|
|
description: redirect
|
|
|