1
0
Fork 0

feat(api): add NewTrainingDate component

This commit is contained in:
Vojtěch Mareš 2024-03-02 16:36:07 +01:00
parent d1e0607812
commit 667b142aa2
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -1,6 +1,6 @@
openapi: "3.1.0" openapi: "3.1.0"
info: info:
version: 1.1.0 version: 1.2.0
title: Backoffice API title: Backoffice API
license: license:
name: Proprietary name: Proprietary
@ -217,8 +217,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: string $ref: "#/components/schemas/NewTrainingDate"
format: date
responses: responses:
"201": "201":
description: Date created description: Date created
@ -590,24 +589,41 @@ components:
required: required:
- id - id
TrainingDate: NewTrainingDate:
type: object type: object
properties: properties:
id:
type: string
format: uuid
date: date:
type: string type: string
format: date format: date
capacity: capacity:
type: integer type: integer
format: int32 format: int32
days:
type: integer
format: int32
location:
type: string
price: price:
$ref: "#/components/schemas/Price" $ref: "#/components/schemas/Price"
required: required:
- date - date
- capacity - capacity
- price - price
- days
- location
TrainingDate:
allOf:
- $ref: "#/components/schemas/NewTrainingDate"
- type: object
properties:
id:
type: string
format: uuid
address:
type: string
required:
- id
NewTrainingDateAttendee: NewTrainingDateAttendee:
type: object type: object