44 lines
937 B
YAML
44 lines
937 B
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"
|
||
|
|