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-04-29 12:10:27 +02:00
|
|
|
$ref: 'api.yaml#/components/schemas/Template'
|
2020-04-21 10:53:07 +02:00
|
|
|
example:
|
2020-05-04 15:48:07 +02:00
|
|
|
_id: 5ea0450ed851c30a90e70894
|
2020-04-21 10:53:07 +02:00
|
|
|
name: heat aging
|
|
|
|
parameters:
|
|
|
|
- name: method
|
|
|
|
range:
|
2020-05-04 15:48:07 +02:00
|
|
|
values:
|
|
|
|
- copper
|
|
|
|
- hot air
|
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-04 15:48:07 +02:00
|
|
|
/template/treatment/{name}:
|
2020-04-21 10:53:07 +02:00
|
|
|
parameters:
|
2020-04-29 12:10:27 +02:00
|
|
|
- $ref: 'api.yaml#/components/parameters/Name'
|
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:
|
|
|
|
allOf:
|
2020-04-29 12:10:27 +02:00
|
|
|
- $ref: 'api.yaml#/components/schemas/Template'
|
2020-04-21 10:53:07 +02:00
|
|
|
example:
|
2020-05-04 15:48:07 +02:00
|
|
|
_id: 5ea0450ed851c30a90e70894
|
2020-04-21 10:53:07 +02:00
|
|
|
name: heat aging
|
|
|
|
parameters:
|
|
|
|
- name: method
|
|
|
|
range:
|
2020-05-04 15:48:07 +02:00
|
|
|
values:
|
|
|
|
- copper
|
|
|
|
- hot air
|
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-04 15:48:07 +02:00
|
|
|
summary: add/change 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-04-21 10:53:07 +02:00
|
|
|
requestBody:
|
|
|
|
required: true
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
allOf:
|
2020-04-29 12:10:27 +02:00
|
|
|
- $ref: 'api.yaml#/components/schemas/Template'
|
2020-04-21 10:53:07 +02:00
|
|
|
example:
|
|
|
|
name: heat aging
|
|
|
|
parameters:
|
|
|
|
- name: method
|
|
|
|
range:
|
2020-05-04 15:48:07 +02:00
|
|
|
values:
|
|
|
|
- copper
|
|
|
|
- hot air
|
2020-04-21 10:53:07 +02:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: treatment details
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
allOf:
|
2020-04-29 12:10:27 +02:00
|
|
|
- $ref: 'api.yaml#/components/schemas/Template'
|
2020-04-21 10:53:07 +02:00
|
|
|
example:
|
2020-05-04 15:48:07 +02:00
|
|
|
_id: 5ea0450ed851c30a90e70894
|
2020-04-21 10:53:07 +02:00
|
|
|
name: heat aging
|
|
|
|
parameters:
|
|
|
|
- name: method
|
|
|
|
range:
|
2020-05-04 15:48:07 +02:00
|
|
|
values:
|
|
|
|
- copper
|
|
|
|
- hot air
|
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-04 15:48:07 +02:00
|
|
|
summary: delete 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-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-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
|
|
|
example:
|
2020-05-04 15:48:07 +02:00
|
|
|
_id: 5ea0450ed851c30a90e70894
|
2020-04-21 10:53:07 +02:00
|
|
|
name: humidity
|
|
|
|
parameters:
|
|
|
|
- name: kf
|
|
|
|
range:
|
|
|
|
min: 0
|
|
|
|
max: 2
|
|
|
|
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-04 15:48:07 +02:00
|
|
|
/template/measurement/{name}:
|
2020-04-21 10:53:07 +02:00
|
|
|
parameters:
|
2020-04-29 12:10:27 +02:00
|
|
|
- $ref: 'api.yaml#/components/parameters/Name'
|
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:
|
|
|
|
allOf:
|
2020-04-29 12:10:27 +02:00
|
|
|
- $ref: 'api.yaml#/components/schemas/Template'
|
2020-04-21 10:53:07 +02:00
|
|
|
example:
|
2020-05-04 15:48:07 +02:00
|
|
|
_id: 5ea0450ed851c30a90e70894
|
2020-04-21 10:53:07 +02:00
|
|
|
name: humidity
|
|
|
|
parameters:
|
|
|
|
- name: kf
|
|
|
|
range:
|
|
|
|
min: 0
|
|
|
|
max: 2
|
|
|
|
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-04 15:48:07 +02:00
|
|
|
summary: add/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:
|
|
|
|
allOf:
|
2020-04-29 12:10:27 +02:00
|
|
|
- $ref: 'api.yaml#/components/schemas/Template'
|
2020-04-21 10:53:07 +02:00
|
|
|
example:
|
2020-05-04 15:48:07 +02:00
|
|
|
_id: 5ea0450ed851c30a90e70894
|
2020-04-21 10:53:07 +02:00
|
|
|
name: humidity
|
|
|
|
parameters:
|
|
|
|
- name: kf
|
|
|
|
range:
|
|
|
|
min: 0
|
|
|
|
max: 2
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: measurement details
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
allOf:
|
2020-04-29 12:10:27 +02:00
|
|
|
- $ref: 'api.yaml#/components/schemas/Template'
|
2020-04-21 10:53:07 +02:00
|
|
|
example:
|
2020-05-04 15:48:07 +02:00
|
|
|
_id: 5ea0450ed851c30a90e70894
|
2020-04-21 10:53:07 +02:00
|
|
|
name: humidity
|
|
|
|
parameters:
|
|
|
|
- name: kf
|
|
|
|
range:
|
|
|
|
min: 0
|
|
|
|
max: 2
|
|
|
|
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-04 15:48:07 +02:00
|
|
|
summary: delete 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
|
|
|
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'
|