2020-04-21 10:53:07 +02:00
|
|
|
/material/{id}:
|
|
|
|
parameters:
|
|
|
|
- $ref: 'oas.yaml#/components/parameters/Id'
|
|
|
|
get:
|
|
|
|
summary: TODO get material details
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: all, levels: read, write, maintain, dev, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
|
|
|
- /material
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: created material
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: 'oas.yaml#/components/schemas/Material'
|
|
|
|
400:
|
|
|
|
$ref: 'oas.yaml#/components/responses/400'
|
|
|
|
401:
|
|
|
|
$ref: 'oas.yaml#/components/responses/401'
|
|
|
|
500:
|
|
|
|
$ref: 'oas.yaml#/components/responses/500'
|
|
|
|
put:
|
|
|
|
summary: TODO add/change material
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: basic, levels: write, maintain, dev, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
|
|
|
- /material
|
2020-04-23 13:59:45 +02:00
|
|
|
security:
|
|
|
|
- BasicAuth: []
|
2020-04-21 10:53:07 +02:00
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: 'oas.yaml#/components/schemas/Material'
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: material details
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: 'oas.yaml#/components/schemas/Material'
|
|
|
|
400:
|
|
|
|
$ref: 'oas.yaml#/components/responses/400'
|
|
|
|
401:
|
|
|
|
$ref: 'oas.yaml#/components/responses/401'
|
|
|
|
403:
|
|
|
|
$ref: 'oas.yaml#/components/responses/403'
|
|
|
|
500:
|
|
|
|
$ref: 'oas.yaml#/components/responses/500'
|
|
|
|
delete:
|
|
|
|
summary: TODO delete material
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: basic, levels: write, maintain, dev, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
|
|
|
- /material
|
2020-04-23 13:59:45 +02:00
|
|
|
security:
|
|
|
|
- BasicAuth: []
|
2020-04-21 10:53:07 +02:00
|
|
|
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'
|
|
|
|
500:
|
|
|
|
$ref: 'oas.yaml#/components/responses/500'
|