2020-04-21 10:53:07 +02:00
|
|
|
/samples:
|
|
|
|
get:
|
2020-05-06 14:39:04 +02:00
|
|
|
summary: all samples in overview
|
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:
|
|
|
|
- /sample
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: samples overview
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-05-06 14:39:04 +02:00
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: 'api.yaml#/components/schemas/SampleRefs'
|
2020-04-21 10:53:07 +02:00
|
|
|
401:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/401'
|
2020-04-21 10:53:07 +02:00
|
|
|
500:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/500'
|
2020-04-21 10:53:07 +02:00
|
|
|
/sample/{id}:
|
|
|
|
parameters:
|
2020-04-29 12:10:27 +02:00
|
|
|
- $ref: 'api.yaml#/components/parameters/Id'
|
2020-04-21 10:53:07 +02:00
|
|
|
get:
|
|
|
|
summary: TODO sample 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:
|
|
|
|
- /sample
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: samples details
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/schemas/SampleDetail'
|
2020-04-21 10:53:07 +02:00
|
|
|
400:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/400'
|
2020-04-21 10:53:07 +02:00
|
|
|
401:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/401'
|
2020-04-21 10:53:07 +02:00
|
|
|
404:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/404'
|
2020-04-21 10:53:07 +02:00
|
|
|
500:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/500'
|
2020-04-21 10:53:07 +02:00
|
|
|
put:
|
2020-05-07 21:55:29 +02:00
|
|
|
summary: change sample
|
|
|
|
description: 'Auth: basic, levels: write, maintain, dev, admin, only maintain and admin are allowed to edit samples created by another user'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
|
|
|
- /sample
|
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:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/schemas/Sample'
|
2020-04-21 10:53:07 +02:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: samples details
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-05-07 21:55:29 +02:00
|
|
|
$ref: 'api.yaml#/components/schemas/SampleRefs'
|
2020-04-21 10:53:07 +02:00
|
|
|
400:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/400'
|
2020-04-21 10:53:07 +02:00
|
|
|
401:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/401'
|
2020-04-21 10:53:07 +02:00
|
|
|
403:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/403'
|
2020-04-21 10:53:07 +02:00
|
|
|
404:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/404'
|
2020-04-21 10:53:07 +02:00
|
|
|
500:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/500'
|
2020-04-21 10:53:07 +02:00
|
|
|
delete:
|
2020-05-07 21:55:29 +02:00
|
|
|
summary: delete sample
|
|
|
|
description: 'Auth: basic, levels: write, maintain, dev, admin, only maintain and admin are allowed to edit samples created by another user'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
|
|
|
- /sample
|
2020-04-23 13:59:45 +02:00
|
|
|
security:
|
|
|
|
- BasicAuth: []
|
2020-04-21 10:53:07 +02:00
|
|
|
responses:
|
|
|
|
200:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/Ok'
|
2020-04-21 10:53:07 +02:00
|
|
|
400:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/400'
|
2020-04-21 10:53:07 +02:00
|
|
|
401:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/401'
|
2020-04-21 10:53:07 +02:00
|
|
|
403:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/403'
|
2020-04-21 10:53:07 +02:00
|
|
|
404:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/404'
|
2020-04-21 10:53:07 +02:00
|
|
|
500:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/500'
|
2020-05-06 14:39:04 +02:00
|
|
|
|
|
|
|
/sample/new:
|
|
|
|
post:
|
|
|
|
summary: add sample
|
|
|
|
description: 'Auth: basic, levels: write, maintain, dev, admin'
|
|
|
|
tags:
|
|
|
|
- /sample
|
|
|
|
security:
|
|
|
|
- BasicAuth: []
|
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: 'api.yaml#/components/schemas/Sample'
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: samples details
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: 'api.yaml#/components/schemas/SampleRefs'
|
|
|
|
400:
|
|
|
|
$ref: 'api.yaml#/components/responses/400'
|
|
|
|
401:
|
|
|
|
$ref: 'api.yaml#/components/responses/401'
|
|
|
|
403:
|
|
|
|
$ref: 'api.yaml#/components/responses/403'
|
|
|
|
500:
|
|
|
|
$ref: 'api.yaml#/components/responses/500'
|
|
|
|
|
2020-04-21 10:53:07 +02:00
|
|
|
/sample/notes/fields:
|
|
|
|
get:
|
2020-05-08 09:58:12 +02:00
|
|
|
summary: list all existing field names for custom notes fields
|
2020-05-06 14:39:04 +02:00
|
|
|
description: 'Auth: all, levels: read, write, maintain, dev, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
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:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/401'
|
2020-04-21 10:53:07 +02:00
|
|
|
500:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/500'
|