GestionHoraire #6
| @ -57,13 +57,6 @@ paths: | ||||
|         - Users | ||||
|       security: | ||||
|         - bearer: [] | ||||
|       parameters: | ||||
|         - in: query | ||||
|           name: type | ||||
|           required: false  | ||||
|           schema: | ||||
|             type: string | ||||
|             enum: [teacher, student, secretary] | ||||
|       responses:  | ||||
| 
					
					Wal marked this conversation as resolved
					
				 | ||||
|         '200': | ||||
|           description: Ok | ||||
| @ -248,7 +241,6 @@ paths: | ||||
|                 faculty: | ||||
|                   type: string | ||||
|                 teachers: | ||||
|                   type: object | ||||
|                   $ref: '#/components/schemas/User' | ||||
|                 assistants: | ||||
|                   type: array | ||||
| @ -352,7 +344,6 @@ paths: | ||||
|                 faculty: | ||||
|                   type: string | ||||
|                 teachers: | ||||
|                   type: object | ||||
|                   $ref: '#/components/schemas/User' | ||||
|                 assistants: | ||||
|                   type: array | ||||
| @ -377,7 +368,7 @@ paths: | ||||
|       summary: Create a new lesson | ||||
|       tags: | ||||
|         - Secretariat | ||||
|         - lesson | ||||
|         - Lesson | ||||
|         - Ext (Schedule) | ||||
|       security:  | ||||
|         - bearer: [] | ||||
| @ -391,7 +382,7 @@ paths: | ||||
|                 date: | ||||
|                   type: string | ||||
|                   description: Follow the iso 8601 ("YYYY-MM-DD") | ||||
|                 IDcourse: | ||||
|                 CourseId: | ||||
|                   type: integer | ||||
|                 duration: | ||||
|                   type: number | ||||
| @ -413,7 +404,7 @@ paths: | ||||
|       summary : See lesson's informations | ||||
|       tags: | ||||
|         - Users | ||||
|         - lesson | ||||
|         - Lesson | ||||
|         - Ext (Schedule) | ||||
|       responses: | ||||
|         '200': | ||||
| @ -426,7 +417,7 @@ paths: | ||||
|       summary : Modify Lesson | ||||
|       tags: | ||||
|         - Secretariat | ||||
|         - lesson | ||||
|         - Lesson | ||||
|         - Ext (Schedule) | ||||
|       security: | ||||
|         - bearer: [] | ||||
| @ -455,7 +446,7 @@ paths: | ||||
|     delete: | ||||
|       summary: Delete lesson | ||||
|       tags: | ||||
|         - lesson | ||||
|         - Lesson | ||||
|         - Secretariat | ||||
|         - Ext (Schedule) | ||||
|       security:  | ||||
| @ -465,12 +456,12 @@ paths: | ||||
|           description: Success | ||||
|         '401': | ||||
|           $ref: '#/components/responses/UnauthorizedError' | ||||
|   /request: | ||||
|   /scheduleRequest: | ||||
|     post: | ||||
|       summary: Create a new request | ||||
|       tags: | ||||
|         - Teacher | ||||
|         - request | ||||
|         - ScheduleRequest | ||||
|         - Ext (Schedule) | ||||
|       requestBody: | ||||
|         required: true | ||||
| @ -479,16 +470,24 @@ paths: | ||||
|             schema: | ||||
|               type: object | ||||
|               properties: | ||||
|                 id: | ||||
|                   type: integer | ||||
|                 requestType: | ||||
| 
					
					Wal marked this conversation as resolved
					
				 
				
					
						Maxime
						commented  tu as laissé request ici peut-être le changer en ScheduleRequest ? tu as laissé request ici peut-être le changer en ScheduleRequest ?
 | ||||
|                   type: string | ||||
|                 lessonId: | ||||
|                   type: integer | ||||
|                 newDate: | ||||
|                   type: string | ||||
|                   description: Follow the iso 8601 ("YYYY-MM-DD") | ||||
|                 newClassroom: | ||||
|                   type: string | ||||
|                 newCourseId: | ||||
|                   type: integer | ||||
|       responses: | ||||
|         '201': | ||||
|           description: Request created  | ||||
|   /request/{id}: | ||||
|         '401': | ||||
|           $ref: '#/components/responses/UnauthorizedError' | ||||
|  | ||||
|   /scheduleRequest/{id}: | ||||
|     parameters: | ||||
|       - name: id | ||||
|         in: path | ||||
| @ -500,7 +499,7 @@ paths: | ||||
|       tags: | ||||
|         - Teacher | ||||
|         - Secretariat | ||||
|         - request | ||||
|         - ScheduleRequest | ||||
|         - Ext (Schedule) | ||||
|       responses: | ||||
|         '200': | ||||
| @ -513,7 +512,7 @@ paths: | ||||
|       summary : Modify request | ||||
|       tags: | ||||
|         - Teacher | ||||
|         - request | ||||
|         - ScheduleRequest | ||||
|         - Ext (Schedule) | ||||
|       requestBody: | ||||
|         required: true | ||||
| @ -522,11 +521,11 @@ paths: | ||||
|              schema: | ||||
|               type: object | ||||
|               properties: | ||||
|                 id: | ||||
|                   type: integer | ||||
|                 requestType: | ||||
|                 newDate: | ||||
|                   type: string | ||||
| 
					
					Wal marked this conversation as resolved
					
				 
				
					
						tonitch
						commented  Je ne pense pas que tu puisse changer l'id d'un request. Je ne pense pas que tu puisse changer l'id d'un request. | ||||
|                 lessonId: | ||||
|                 newClassroom: | ||||
|                   type: string | ||||
|                 newCourseId: | ||||
|                   type: integer | ||||
|       responses: | ||||
|         '201': | ||||
| @ -536,7 +535,7 @@ paths: | ||||
|       tags: | ||||
|         - Teacher | ||||
|         - Secretariat | ||||
|         - request | ||||
|         - ScheduleRequest | ||||
|         - Ext (Schedule) | ||||
|       responses: | ||||
|         '201': | ||||
| @ -546,7 +545,7 @@ paths: | ||||
|     post: | ||||
|         summary: Create a new display | ||||
|         tags: | ||||
| 
					
					Wal marked this conversation as resolved
					
				 
				
					
						tonitch
						commented  summary permet une courte description. il y'a également le tag  Dans ce cas ci ça pourrais peut être être utile ? display peut être ambigu ? summary permet une courte description. il y'a également le tag `description` qui peut être pratique pour une plus grande description.
Dans ce cas ci ça pourrais peut être être utile ? display peut être ambigu ? | ||||
|           - display | ||||
|           - Display | ||||
|           - Ext (Schedule) | ||||
|         requestBody: | ||||
|           required: true | ||||
| @ -555,11 +554,9 @@ paths: | ||||
|               schema: | ||||
|                 type: object | ||||
|                 properties: | ||||
|                   id: | ||||
|                    type: integer | ||||
|                   time: | ||||
|                   timeMode: | ||||
|                     type: string | ||||
| 
					
					Wal marked this conversation as resolved
					
				 
				
					
						tonitch
						commented  l'id ne pourrais pas l'id ne pourrais pas  | ||||
|                   display: | ||||
|                   displayMode: | ||||
|                     type: string | ||||
|                   userId: | ||||
|                     type: integer | ||||
| @ -578,7 +575,7 @@ paths: | ||||
|       summary : See display information | ||||
|       tags: | ||||
|         - Users | ||||
|         - display | ||||
|         - Display | ||||
|         - Ext (Schedule) | ||||
|       responses: | ||||
|         '200': | ||||
| @ -591,7 +588,7 @@ paths: | ||||
|       summary : Modify display | ||||
|       tags: | ||||
|         - Users | ||||
|         - display | ||||
|         - Display | ||||
|         - Ext (Schedule) | ||||
|       requestBody: | ||||
|         required: true | ||||
| @ -600,14 +597,10 @@ paths: | ||||
|              schema: | ||||
|               type: object | ||||
|               properties: | ||||
|                   id: | ||||
|                    type: integer | ||||
|                   time: | ||||
|                   timeMode: | ||||
|                     type: string | ||||
|                   display: | ||||
|                   displayMode: | ||||
|                     type: string | ||||
| 
					
					Wal marked this conversation as resolved
					
				 
				
					
						tonitch
						commented  l'id ne pourrais pas être changé ici non plus. l'id ne pourrais pas être changé ici non plus. | ||||
|                   userId: | ||||
|                     type: integer | ||||
|       responses: | ||||
|         '201': | ||||
|           description: Display modified | ||||
| @ -718,15 +711,16 @@ components: | ||||
|           description: duration of a course in hours | ||||
|         classroom: | ||||
|           type: string | ||||
|         course: | ||||
|           $ref: "#/components/schemas/Course" | ||||
|         courseId: | ||||
|           type: integer | ||||
|       example: | ||||
|         { | ||||
|           "id": 12, | ||||
|           "date": "2023-12-01", | ||||
|           "duration": 1.5, | ||||
|           "classroom": "AMPHI01", | ||||
|           "course": } | ||||
|           { | ||||
|             "id": 12, | ||||
|             "date": "2023-12-01", | ||||
|             "duration": 1.5, | ||||
|             "classroom": "AMPHI01", | ||||
|             "courseId": 12 | ||||
|           } | ||||
|     ScheduleRequest: | ||||
|       type: object | ||||
|       properties: | ||||
| @ -736,7 +730,6 @@ components: | ||||
|           type: string | ||||
|         lessonId: | ||||
|           type: integer | ||||
|           description: In the ADD case, lessonId is null | ||||
|         teacherId: | ||||
|           type: integer | ||||
|         newDate: | ||||
| @ -744,10 +737,8 @@ components: | ||||
|           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 | ||||
|          | ||||
|         newCourseId: | ||||
|           type: integer | ||||
|       example: | ||||
|         { | ||||
|           "id": 12, | ||||
| @ -756,7 +747,7 @@ components: | ||||
|           "teacherId": 12, | ||||
|           "newDate": "2023-12-20", | ||||
|           "newClassroom":, | ||||
|           "newCourse":, | ||||
|           "newCourseId":, | ||||
|         } | ||||
|      | ||||
|     Display: | ||||
| @ -764,10 +755,10 @@ components: | ||||
|       properties: | ||||
|         id: | ||||
|           type: integer | ||||
|         time: | ||||
|         timeMode: | ||||
|           type: string | ||||
|           description: Define the period displayed on the schedule (week,month,quadrimester..) | ||||
|         display: | ||||
|         displayMode: | ||||
|           type: string | ||||
|         userId: | ||||
|           type: integer | ||||
| @ -775,8 +766,8 @@ components: | ||||
|       example: | ||||
|         { | ||||
|           "id": 12, | ||||
|           "time": "month", | ||||
|           "display": "grid", | ||||
|           "timeMode": "month", | ||||
|           "displayMode": "grid", | ||||
|           "UserId": 12 | ||||
|         } | ||||
|   responses: | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	
ce endpoint permet l'accés à "information about yourself" donc je ne vois pas comment il pourrais être paramètrisé par sa fonction ^^