177 lines
3.7 KiB
YAML
177 lines
3.7 KiB
YAML
Id:
|
|
type: string
|
|
example: 5ea0450ed851c30a90e70894
|
|
_Id:
|
|
properties:
|
|
_id:
|
|
allOf:
|
|
- $ref: 'api.yaml#/components/schemas/Id'
|
|
readOnly: true
|
|
Color:
|
|
properties:
|
|
color:
|
|
type: string
|
|
example: black
|
|
SampleProperties:
|
|
properties:
|
|
sample_number:
|
|
type: string
|
|
type:
|
|
type: string
|
|
batch:
|
|
type: string
|
|
validated:
|
|
type: boolean
|
|
|
|
Samples:
|
|
allOf:
|
|
- $ref: 'api.yaml#/components/schemas/_Id'
|
|
- $ref: 'api.yaml#/components/schemas/Color'
|
|
- $ref: 'api.yaml#/components/schemas/SampleProperties'
|
|
properties:
|
|
material_id:
|
|
$ref: 'api.yaml#/components/schemas/Id'
|
|
note_id:
|
|
$ref: 'api.yaml#/components/schemas/Id'
|
|
user_id:
|
|
$ref: 'api.yaml#/components/schemas/Id'
|
|
Sample:
|
|
allOf:
|
|
- $ref: 'api.yaml#/components/schemas/_Id'
|
|
- $ref: 'api.yaml#/components/schemas/Color'
|
|
- $ref: 'api.yaml#/components/schemas/SampleProperties'
|
|
properties:
|
|
material:
|
|
$ref: 'api.yaml#/components/schemas/Material'
|
|
notes:
|
|
type: object
|
|
properties:
|
|
comments:
|
|
type: string
|
|
sample_references:
|
|
type: array
|
|
items:
|
|
$ref: 'api.yaml#/components/schemas/Id'
|
|
SampleDetail:
|
|
allOf:
|
|
- $ref: 'api.yaml#/components/schemas/_Id'
|
|
- $ref: 'api.yaml#/components/schemas/Color'
|
|
- $ref: 'api.yaml#/components/schemas/SampleProperties'
|
|
properties:
|
|
material:
|
|
$ref: 'api.yaml#/components/schemas/Material'
|
|
notes:
|
|
type: object
|
|
properties:
|
|
comments:
|
|
type: string
|
|
sample_references:
|
|
type: array
|
|
items:
|
|
$ref: 'api.yaml#/components/schemas/Id'
|
|
conditions:
|
|
type: array
|
|
items:
|
|
$ref: 'api.yaml#/components/schemas/Condition'
|
|
|
|
Material:
|
|
allOf:
|
|
- $ref: 'api.yaml#/components/schemas/_Id'
|
|
properties:
|
|
name:
|
|
type: string
|
|
example: Stanyl TW 200 F8
|
|
supplier:
|
|
type: string
|
|
example: DSM
|
|
group:
|
|
type: string
|
|
example: PA46
|
|
mineral:
|
|
type: number
|
|
example: 0
|
|
glass_fiber:
|
|
type: number
|
|
example: 40
|
|
carbon_fiber:
|
|
type: number
|
|
example: 0
|
|
numbers:
|
|
type: array
|
|
items:
|
|
type: object
|
|
allOf:
|
|
- $ref: 'api.yaml#/components/schemas/Color'
|
|
properties:
|
|
number:
|
|
type: number
|
|
example: 5514263423
|
|
|
|
Condition:
|
|
allOf:
|
|
- $ref: 'api.yaml#/components/schemas/_Id'
|
|
properties:
|
|
sample_id:
|
|
$ref: 'api.yaml#/components/schemas/Id'
|
|
parameters:
|
|
type: object
|
|
treatment_template:
|
|
$ref: 'api.yaml#/components/schemas/Id'
|
|
|
|
Measurement:
|
|
allOf:
|
|
- $ref: 'api.yaml#/components/schemas/_Id'
|
|
properties:
|
|
condition_id:
|
|
$ref: 'api.yaml#/components/schemas/Id'
|
|
values:
|
|
type: object
|
|
measurement_template:
|
|
$ref: 'api.yaml#/components/schemas/Id'
|
|
|
|
Template:
|
|
allOf:
|
|
- $ref: 'api.yaml#/components/schemas/_Id'
|
|
properties:
|
|
name:
|
|
type: string
|
|
parameters:
|
|
type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
name:
|
|
type: string
|
|
range:
|
|
type: object
|
|
|
|
Email:
|
|
properties:
|
|
email:
|
|
type: string
|
|
example: john.doe@bosch.com
|
|
UserName:
|
|
properties:
|
|
name:
|
|
type: string
|
|
example: johndoe
|
|
User:
|
|
allOf:
|
|
- $ref: 'api.yaml#/components/schemas/_Id'
|
|
- $ref: 'api.yaml#/components/schemas/UserName'
|
|
- $ref: 'api.yaml#/components/schemas/Email'
|
|
properties:
|
|
pass:
|
|
type: string
|
|
writeOnly: true
|
|
example: Abc123!#
|
|
level:
|
|
type: string
|
|
example: read
|
|
location:
|
|
type: string
|
|
example: Rng
|
|
device_name:
|
|
type: string
|
|
example: Alpha II
|