diff --git a/api/v1/openapi.yaml b/api/v1/openapi.yaml index fa54625..ff2ab7c 100644 --- a/api/v1/openapi.yaml +++ b/api/v1/openapi.yaml @@ -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