Archived
2

added /measurement/sample/{id} route

This commit is contained in:
VLE2FE
2020-08-21 14:01:01 +02:00
parent 47955ec572
commit 8d894fa27e
4 changed files with 110 additions and 3 deletions

View File

@ -77,6 +77,40 @@
500:
$ref: 'api.yaml#/components/responses/500'
/measurement/sample/{id}:
parameters:
- $ref: 'api.yaml#/components/parameters/Id'
get:
summary: all measurements of the given sample
description: 'Auth: basic, levels: dev, admin'
tags:
- /measurement
security:
- BasicAuth: []
responses:
200:
description: measurement details
content:
application/json:
schema:
type: array
items:
allOf:
- $ref: 'api.yaml#/components/schemas/Measurement'
properties:
status:
type: string
description: can be deleted/new/validated
example: new
401:
$ref: 'api.yaml#/components/responses/401'
403:
$ref: 'api.yaml#/components/responses/403'
404:
$ref: 'api.yaml#/components/responses/404'
500:
$ref: 'api.yaml#/components/responses/500'
/measurement/restore/{id}:
parameters:
- $ref: 'api.yaml#/components/parameters/Id'