Archived
2

fixed validation to return measurements in /sample/{id}

This commit is contained in:
VLE2FE
2020-06-18 08:57:50 +02:00
parent 869a675840
commit ac72d8a975
6 changed files with 27 additions and 12 deletions

View File

@ -55,8 +55,8 @@
parameters:
- $ref: 'api.yaml#/components/parameters/Id'
get:
summary: TODO sample details
description: 'Auth: all, levels: read, write, maintain, dev, admin'
summary: sample details
description: 'Auth: all, levels: read, write, maintain, dev, admin<br>Returns validated as well as new measurements'
x-doc: deleted samples are available only for maintain/admin
tags:
- /sample
@ -225,12 +225,14 @@
content:
application/json:
schema:
properties:
name:
type: string
qty:
type: number
example: 20
type: array
items:
properties:
name:
type: string
qty:
type: number
example: 20
401:
$ref: 'api.yaml#/components/responses/401'
500:

View File

@ -69,6 +69,8 @@ Sample:
relation:
type: string
example: part to this sample
custom_fields:
type: object
SampleDetail:
allOf: