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"
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