Modify Request
This commit is contained in:
		@ -508,7 +508,7 @@ paths:
 | 
				
			|||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Request'
 | 
					                $ref: '#/components/schemas/ScheduleRequest'
 | 
				
			||||||
    patch:
 | 
					    patch:
 | 
				
			||||||
      summary : Modify request
 | 
					      summary : Modify request
 | 
				
			||||||
      tags:
 | 
					      tags:
 | 
				
			||||||
@ -727,7 +727,7 @@ components:
 | 
				
			|||||||
          "duration": 1.5,
 | 
					          "duration": 1.5,
 | 
				
			||||||
          "classroom": "AMPHI01",
 | 
					          "classroom": "AMPHI01",
 | 
				
			||||||
          "course": }
 | 
					          "course": }
 | 
				
			||||||
    Request:
 | 
					    ScheduleRequest:
 | 
				
			||||||
      type: object
 | 
					      type: object
 | 
				
			||||||
      properties:
 | 
					      properties:
 | 
				
			||||||
        id:
 | 
					        id:
 | 
				
			||||||
@ -736,12 +736,29 @@ components:
 | 
				
			|||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
        lessonId:
 | 
					        lessonId:
 | 
				
			||||||
          type: integer
 | 
					          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:
 | 
					      example:
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "id": 12,
 | 
					          "id": 12,
 | 
				
			||||||
          "requestType": "delete",
 | 
					          "requestType": "moveLesson",
 | 
				
			||||||
          "lessonId": 72
 | 
					          "lessonId": 52,
 | 
				
			||||||
 | 
					          "teacherId": 12,
 | 
				
			||||||
 | 
					          "newDate": "2023-12-20",
 | 
				
			||||||
 | 
					          "newClassroom":,
 | 
				
			||||||
 | 
					          "newCourse":,
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    Display:
 | 
					    Display:
 | 
				
			||||||
      type: object
 | 
					      type: object
 | 
				
			||||||
      properties:
 | 
					      properties:
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user