("
summary: add new violation
operationId: add_new_violation
tags:
- violation
requestBody:
description: Optional description in Markdown
required: true
content:
application/json:
schema:
type: object
properties:
external_id:
type: string
format: string
summary: External violation id
create_dt:
type: string
format: string
summary: date create violation in format d/m/Y
expiration_dt:
type: string
format: string
summary: date expiratied violation in format d/m/Y
employee:
type: integer
format: int32
summary: id employee
reason:
type: string
format: string
summary: reason violations
instruction:
type: string
format: string
summary: number broken instruction
examples:
violation:
summary: example violation input json
value:
external_id: 02106c93-8b32-48c4-9284-88990fc23a85
create_dt: 2021-11-01T10:21:30
expiration_dt: 2022-11-01T10:21:31
employee: 1278
reason: Сувал пальцы в разетку
instruction: 20.21
responses:
'200':
description: return new violation as json object
content:
application/json:
schema:
type: object
properties:
uuid:
type: string
format: string
summary: Violation UUID
external_id:
type: string
format: string
summary: External violation id
create_dt:
type: string
format: string
summary: date create violation in format d/m/Y
expiration_dt:
type: string
format: string
summary: date expiratied violation in format d/m/Y
employee:
type: integer
format: int32
summary: id employee
reason:
type: string
format: string
summary: reason violations
instruction:
type: string
format: string
summary: number broken instruction
")