1
0
forked from PGL/Clyde

Modify Request

This commit is contained in:
Wal 2023-12-11 14:13:37 +01:00
parent 87d00943c0
commit 93ec63beae

View File

@ -508,7 +508,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/Request'
$ref: '#/components/schemas/ScheduleRequest'
patch:
summary : Modify request
tags:
@ -727,7 +727,7 @@ components:
"duration": 1.5,
"classroom": "AMPHI01",
"course": }
Request:
ScheduleRequest:
type: object
properties:
id:
@ -736,12 +736,29 @@ components:
type: string
lessonId:
type: integer
description: In the ADD case, lessonId is null
teacherId:
type: integer
newDate:
type: string
description: Follow the iso 8601 ("YYYY-MM-DD")
newClassroom:
type: string
newCourse:
type: string
description: In the ADD case, correspond to the name of the course to add
example:
{
"id": 12,
"requestType": "delete",
"lessonId": 72
"requestType": "moveLesson",
"lessonId": 52,
"teacherId": 12,
"newDate": "2023-12-20",
"newClassroom":,
"newCourse":,
}
Display:
type: object
properties: