diff --git a/Documents/proto/general/openapi.yaml b/Documents/proto/general/openapi.yaml index 97f0cf8..90f59a2 100644 --- a/Documents/proto/general/openapi.yaml +++ b/Documents/proto/general/openapi.yaml @@ -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: