69 lines
1.9 KiB
YAML
69 lines
1.9 KiB
YAML
|
/condition/{id}:
|
||
|
parameters:
|
||
|
- $ref: 'oas.yaml#/components/parameters/Id'
|
||
|
get:
|
||
|
summary: TODO condition by id
|
||
|
description: 'levels: read, write, maintain, dev, admin'
|
||
|
tags:
|
||
|
- /condition
|
||
|
responses:
|
||
|
200:
|
||
|
description: condition details
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: 'oas.yaml#/components/schemas/Condition'
|
||
|
400:
|
||
|
$ref: 'oas.yaml#/components/responses/400'
|
||
|
401:
|
||
|
$ref: 'oas.yaml#/components/responses/401'
|
||
|
404:
|
||
|
$ref: 'oas.yaml#/components/responses/404'
|
||
|
500:
|
||
|
$ref: 'oas.yaml#/components/responses/500'
|
||
|
put:
|
||
|
summary: TODO add/change condition
|
||
|
description: 'levels: write, maintain, dev, admin'
|
||
|
tags:
|
||
|
- /condition
|
||
|
requestBody:
|
||
|
required: true
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: 'oas.yaml#/components/schemas/Condition'
|
||
|
responses:
|
||
|
200:
|
||
|
description: condition details
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: 'oas.yaml#/components/schemas/Condition'
|
||
|
400:
|
||
|
$ref: 'oas.yaml#/components/responses/400'
|
||
|
401:
|
||
|
$ref: 'oas.yaml#/components/responses/401'
|
||
|
403:
|
||
|
$ref: 'oas.yaml#/components/responses/403'
|
||
|
404:
|
||
|
$ref: 'oas.yaml#/components/responses/404'
|
||
|
500:
|
||
|
$ref: 'oas.yaml#/components/responses/500'
|
||
|
delete:
|
||
|
summary: TODO delete condition
|
||
|
description: 'levels: write, maintain, dev, admin'
|
||
|
tags:
|
||
|
- /condition
|
||
|
responses:
|
||
|
200:
|
||
|
$ref: 'oas.yaml#/components/responses/Ok'
|
||
|
400:
|
||
|
$ref: 'oas.yaml#/components/responses/400'
|
||
|
401:
|
||
|
$ref: 'oas.yaml#/components/responses/401'
|
||
|
403:
|
||
|
$ref: 'oas.yaml#/components/responses/403'
|
||
|
404:
|
||
|
$ref: 'oas.yaml#/components/responses/404'
|
||
|
500:
|
||
|
$ref: 'oas.yaml#/components/responses/500'
|