feat(api): add NewTrainingDate component
This commit is contained in:
parent
d1e0607812
commit
667b142aa2
1 changed files with 23 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
openapi: "3.1.0"
|
||||
info:
|
||||
version: 1.1.0
|
||||
version: 1.2.0
|
||||
title: Backoffice API
|
||||
license:
|
||||
name: Proprietary
|
||||
|
|
@ -217,8 +217,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: string
|
||||
format: date
|
||||
$ref: "#/components/schemas/NewTrainingDate"
|
||||
responses:
|
||||
"201":
|
||||
description: Date created
|
||||
|
|
@ -590,24 +589,41 @@ components:
|
|||
required:
|
||||
- id
|
||||
|
||||
TrainingDate:
|
||||
NewTrainingDate:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
format: uuid
|
||||
date:
|
||||
type: string
|
||||
format: date
|
||||
capacity:
|
||||
type: integer
|
||||
format: int32
|
||||
days:
|
||||
type: integer
|
||||
format: int32
|
||||
location:
|
||||
type: string
|
||||
price:
|
||||
$ref: "#/components/schemas/Price"
|
||||
required:
|
||||
- date
|
||||
- capacity
|
||||
- price
|
||||
- days
|
||||
- location
|
||||
|
||||
TrainingDate:
|
||||
allOf:
|
||||
- $ref: "#/components/schemas/NewTrainingDate"
|
||||
- type: object
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
format: uuid
|
||||
address:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
|
||||
NewTrainingDateAttendee:
|
||||
type: object
|
||||
|
|
|
|||
Reference in a new issue