108 lines
2.9 KiB
YAML
108 lines
2.9 KiB
YAML
|
/samples:
|
||
|
get:
|
||
|
summary: TODO all samples in overview
|
||
|
description: 'levels: read, write, maintain, dev, admin'
|
||
|
tags:
|
||
|
- /sample
|
||
|
responses:
|
||
|
200:
|
||
|
description: samples overview
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: 'oas.yaml#/components/schemas/Samples'
|
||
|
401:
|
||
|
$ref: 'oas.yaml#/components/responses/401'
|
||
|
500:
|
||
|
$ref: 'oas.yaml#/components/responses/500'
|
||
|
/sample/{id}:
|
||
|
parameters:
|
||
|
- $ref: 'oas.yaml#/components/parameters/Id'
|
||
|
get:
|
||
|
summary: TODO sample details
|
||
|
description: 'levels: read, write, maintain, dev, admin'
|
||
|
tags:
|
||
|
- /sample
|
||
|
responses:
|
||
|
200:
|
||
|
description: samples details
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: 'oas.yaml#/components/schemas/SampleDetail'
|
||
|
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 sample
|
||
|
description: 'levels: write, maintain, dev, admin'
|
||
|
tags:
|
||
|
- /sample
|
||
|
requestBody:
|
||
|
required: true
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: 'oas.yaml#/components/schemas/Sample'
|
||
|
responses:
|
||
|
200:
|
||
|
description: samples details
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
$ref: 'oas.yaml#/components/schemas/SampleDetail'
|
||
|
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 sample
|
||
|
description: 'levels: write, maintain, dev, admin'
|
||
|
tags:
|
||
|
- /sample
|
||
|
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'
|
||
|
/sample/notes/fields:
|
||
|
get:
|
||
|
summary: TODO list all existing field names for custom notes fields
|
||
|
description: 'levels: write, maintain, dev, admin'
|
||
|
tags:
|
||
|
- /sample
|
||
|
responses:
|
||
|
200:
|
||
|
description: field names and quantity of usage
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
properties:
|
||
|
name:
|
||
|
type: string
|
||
|
qty:
|
||
|
type: number
|
||
|
example: 20
|
||
|
401:
|
||
|
$ref: 'oas.yaml#/components/responses/401'
|
||
|
500:
|
||
|
$ref: 'oas.yaml#/components/responses/500'
|