fixed validation to return measurements in /sample/{id}
This commit is contained in:
@ -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:
|
||||
|
@ -69,6 +69,8 @@ Sample:
|
||||
relation:
|
||||
type: string
|
||||
example: part to this sample
|
||||
custom_fields:
|
||||
type: object
|
||||
|
||||
SampleDetail:
|
||||
allOf:
|
||||
|
Reference in New Issue
Block a user