("
summary: add new accident
operationId: add_new_accident
tags:
- bad_case
requestBody:
description: Method for adding new accident records
required: true
content:
multipart/form-data:
schema:
type: object
properties:
event_dt:
type: string
format: string
summary: Date create accidents in format d/m/Y
structure:
type: string
format: string
summary: A string representing the chain of structure levels. level1|level2|level3|...
circumstance:
type: string
format: string
summary: Circumstances of the incident
degree_of_injury:
type: string
format: string
summary: Injury severity
file:
type: string
format: binary
summary: Additional information file
responses:
'200':
description: return new accident as json object
content:
application/json:
schema:
type: object
properties:
ctreate_dt:
type: string
format: string
summary: date create accident in format Y-d-m h:i:s
id:
type: string
format: string
summary: accident id
uuid:
type: string
format: string
summary: uuid accident
structure:
type: integer
format: int32
summary: identity structure
conditions:
type: string
format: string
summary: conditions accident
injury_severity:
type: string
format: string
summary: the severity of the employee's injury in the incident
file:
type: string
format: string
summary: path to file
")