feat(api): add PUT /trainings/{trainingID}/dates/{dateID} to modify date
This commit is contained in:
parent
87d432dd52
commit
04d261bb5d
1 changed files with 55 additions and 0 deletions
|
|
@ -293,6 +293,61 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
put:
|
||||
summary: Update a date of a training
|
||||
operationId: updateTrainingDate
|
||||
tags:
|
||||
- training dates
|
||||
parameters:
|
||||
- name: trainingID
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
format: uuid
|
||||
x-go-type: training.ID
|
||||
x-go-type-import:
|
||||
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
|
||||
- name: dateID
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
format: uuid
|
||||
x-go-type: training.DateID
|
||||
x-go-type-import:
|
||||
path: gitlab.mareshq.com/hq/backoffice/backoffice-api/pkg/training
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/NewTrainingDate"
|
||||
responses:
|
||||
"200":
|
||||
description: Date updated
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/TrainingDate"
|
||||
"404":
|
||||
description: Date not found
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
"400":
|
||||
description: Invalid input
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
default:
|
||||
description: Unexpected error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
/trainings/{trainingID}/dates/{dateID}/attendees:
|
||||
get:
|
||||
|
|
|
|||
Reference in a new issue