only allowed latest template version and allowed admin to set sample number
This commit is contained in:
@ -170,7 +170,7 @@
|
||||
/sample/new:
|
||||
post:
|
||||
summary: add sample
|
||||
description: 'Auth: basic, levels: write, maintain, dev, admin'
|
||||
description: 'Auth: basic, levels: write, maintain, dev, admin. Number property is only for admin when adding existing samples'
|
||||
x-doc: 'Adds status: 0 automatically'
|
||||
tags:
|
||||
- /sample
|
||||
@ -181,7 +181,12 @@
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: 'api.yaml#/components/schemas/Sample'
|
||||
allOf:
|
||||
- $ref: 'api.yaml#/components/schemas/Sample'
|
||||
properties:
|
||||
number:
|
||||
type: string
|
||||
readOnly: false
|
||||
responses:
|
||||
200:
|
||||
description: samples details
|
||||
|
@ -69,6 +69,7 @@ Sample:
|
||||
relation:
|
||||
type: string
|
||||
example: part to this sample
|
||||
|
||||
SampleDetail:
|
||||
allOf:
|
||||
- $ref: 'api.yaml#/components/schemas/_Id'
|
||||
|
Reference in New Issue
Block a user