2020-04-21 10:53:07 +02:00
|
|
|
/template/treatments:
|
|
|
|
get:
|
2020-05-04 15:48:07 +02:00
|
|
|
summary: all available treatment methods
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: basic, levels: read, write, maintain, dev, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
2020-05-04 15:48:07 +02:00
|
|
|
- /template
|
2020-04-21 10:53:07 +02:00
|
|
|
security:
|
|
|
|
- BasicAuth: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: list of treatments
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
2020-05-13 17:28:18 +02:00
|
|
|
$ref: 'api.yaml#/components/schemas/TreatmentTemplate'
|
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-05-13 17:28:18 +02:00
|
|
|
|
|
|
|
/template/treatment/{id}:
|
2020-04-21 10:53:07 +02:00
|
|
|
parameters:
|
2020-05-13 17:28:18 +02:00
|
|
|
- $ref: 'api.yaml#/components/parameters/Id'
|
2020-04-21 10:53:07 +02:00
|
|
|
get:
|
2020-05-04 15:48:07 +02:00
|
|
|
summary: treatment method details
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: basic, levels: read, write, maintain, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
2020-05-04 15:48:07 +02:00
|
|
|
- /template
|
2020-04-21 10:53:07 +02:00
|
|
|
security:
|
|
|
|
- BasicAuth: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: treatment details
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-05-13 17:28:18 +02:00
|
|
|
$ref: 'api.yaml#/components/schemas/TreatmentTemplate'
|
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-13 17:28:18 +02:00
|
|
|
summary: change treatment method
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: basic, levels: maintain, admin'
|
2020-05-13 17:28:18 +02:00
|
|
|
x-doc: With a change a new version is set, resulting in a new template with a new id
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
2020-05-04 15:48:07 +02:00
|
|
|
- /template
|
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-05-13 17:28:18 +02:00
|
|
|
$ref: 'api.yaml#/components/schemas/TreatmentTemplate'
|
2020-04-21 10:53:07 +02:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: treatment details
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-05-13 17:28:18 +02:00
|
|
|
$ref: 'api.yaml#/components/schemas/TreatmentTemplate'
|
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-13 17:28:18 +02:00
|
|
|
|
|
|
|
/template/treatment/new:
|
|
|
|
post:
|
|
|
|
summary: add treatment method
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: basic, levels: maintain, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
2020-05-04 15:48:07 +02:00
|
|
|
- /template
|
2020-04-23 13:59:45 +02:00
|
|
|
security:
|
|
|
|
- BasicAuth: []
|
2020-05-13 17:28:18 +02:00
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: 'api.yaml#/components/schemas/TreatmentTemplate'
|
2020-04-21 10:53:07 +02:00
|
|
|
responses:
|
|
|
|
200:
|
2020-05-13 17:28:18 +02:00
|
|
|
description: treatment details
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: 'api.yaml#/components/schemas/TreatmentTemplate'
|
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
|
|
|
500:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/500'
|
2020-05-13 17:28:18 +02:00
|
|
|
|
2020-04-21 10:53:07 +02:00
|
|
|
/template/measurements:
|
|
|
|
get:
|
2020-05-04 15:48:07 +02:00
|
|
|
summary: all available measurement methods
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: basic, levels: read, write, maintain, dev, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
2020-05-04 15:48:07 +02:00
|
|
|
- /template
|
2020-04-21 10:53:07 +02:00
|
|
|
security:
|
|
|
|
- BasicAuth: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: list of measurement methods
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: array
|
|
|
|
items:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/schemas/Template'
|
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-05-13 17:28:18 +02:00
|
|
|
/template/measurement/{id}:
|
2020-04-21 10:53:07 +02:00
|
|
|
parameters:
|
2020-05-13 17:28:18 +02:00
|
|
|
- $ref: 'api.yaml#/components/parameters/Id'
|
2020-04-21 10:53:07 +02:00
|
|
|
get:
|
2020-05-04 15:48:07 +02:00
|
|
|
summary: measurement method details
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: basic, levels: read, write, maintain, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
2020-05-04 15:48:07 +02:00
|
|
|
- /template
|
2020-04-21 10:53:07 +02:00
|
|
|
security:
|
|
|
|
- BasicAuth: []
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: measurement details
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-05-13 17:28:18 +02:00
|
|
|
$ref: 'api.yaml#/components/schemas/Template'
|
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-13 17:28:18 +02:00
|
|
|
summary: change measurement method
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: basic, levels: maintain, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
2020-05-04 15:48:07 +02:00
|
|
|
- /template
|
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-05-13 17:28:18 +02:00
|
|
|
$ref: 'api.yaml#/components/schemas/Template'
|
2020-04-21 10:53:07 +02:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: measurement details
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
2020-05-13 17:28:18 +02:00
|
|
|
$ref: 'api.yaml#/components/schemas/Template'
|
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-13 17:28:18 +02:00
|
|
|
|
|
|
|
/template/measurement/new:
|
|
|
|
post:
|
|
|
|
summary: add measurement method
|
2020-04-23 13:59:45 +02:00
|
|
|
description: 'Auth: basic, levels: maintain, admin'
|
2020-04-21 10:53:07 +02:00
|
|
|
tags:
|
2020-05-04 15:48:07 +02:00
|
|
|
- /template
|
2020-04-23 13:59:45 +02:00
|
|
|
security:
|
|
|
|
- BasicAuth: []
|
2020-05-13 17:28:18 +02:00
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: 'api.yaml#/components/schemas/Template'
|
2020-04-21 10:53:07 +02:00
|
|
|
responses:
|
|
|
|
200:
|
2020-05-13 17:28:18 +02:00
|
|
|
description: measurement details
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: 'api.yaml#/components/schemas/Template'
|
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
|
|
|
500:
|
2020-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/responses/500'
|