Ext_publiScientifique #5
| @ -190,6 +190,12 @@ paths: | |||||||
|         '401': |         '401': | ||||||
|           $ref: '#/components/responses/UnauthorizedError' |           $ref: '#/components/responses/UnauthorizedError' | ||||||
|   /courses/{id}: |   /courses/{id}: | ||||||
|  |     parameters: | ||||||
|  |       - name: id | ||||||
|  |         in: path | ||||||
|  |         required: true | ||||||
|  |         schema: | ||||||
|  |           type: integer | ||||||
|     get: |     get: | ||||||
|       summary: see courses informations  |       summary: see courses informations  | ||||||
|       tags: |       tags: | ||||||
| @ -202,12 +208,7 @@ paths: | |||||||
|             application/json: |             application/json: | ||||||
|               schema: |               schema: | ||||||
|                 $ref: '#/components/schemas/Course' |                 $ref: '#/components/schemas/Course' | ||||||
|     parameters: |  | ||||||
|       - name: id |  | ||||||
|         in: path |  | ||||||
|         required: true |  | ||||||
|         schema: |  | ||||||
|           type: integer |  | ||||||
|     delete: |     delete: | ||||||
|       summary: delete a course  |       summary: delete a course  | ||||||
|       tags: |       tags: | ||||||
| @ -267,7 +268,7 @@ paths: | |||||||
|       summary: Create a cursus |       summary: Create a cursus | ||||||
|       tags: |       tags: | ||||||
|         - General |         - General | ||||||
|         - cursus |         - Cursus | ||||||
|       security:  |       security:  | ||||||
|         - bearer: [] |         - bearer: [] | ||||||
|       requestBody: |       requestBody: | ||||||
| @ -299,7 +300,7 @@ paths: | |||||||
|       summary: See Cursus's informations  |       summary: See Cursus's informations  | ||||||
|       tags: |       tags: | ||||||
|         - General |         - General | ||||||
|         - cursus |         - Cursus | ||||||
|       responses: |       responses: | ||||||
|         '200': |         '200': | ||||||
|           description: OK |           description: OK | ||||||
| @ -317,7 +318,7 @@ paths: | |||||||
|       summary: Delete cursus |       summary: Delete cursus | ||||||
|       tags: |       tags: | ||||||
|         - General |         - General | ||||||
|         - cursus |         - Cursus | ||||||
|       security:  |       security:  | ||||||
|         - bearer: [] |         - bearer: [] | ||||||
|       responses: |       responses: | ||||||
| @ -329,7 +330,7 @@ paths: | |||||||
|       summary: Modify cursus  |       summary: Modify cursus  | ||||||
|       tags: |       tags: | ||||||
|         - General |         - General | ||||||
|         - cursus |         - Cursus | ||||||
|       security: |       security: | ||||||
|         - bearer: [] |         - bearer: [] | ||||||
|       requestBody: |       requestBody: | ||||||
| @ -366,13 +367,248 @@ paths: | |||||||
|           $ref: '#/components/responses/UnauthorizedError' |           $ref: '#/components/responses/UnauthorizedError' | ||||||
|            |            | ||||||
|               |               | ||||||
|  |   /lesson: | ||||||
|  |     post: | ||||||
|  |       summary: create a new lesson | ||||||
|  |       tags: | ||||||
|  |         - Secretariat | ||||||
|  |         - Lesson | ||||||
|  |         - Ext (Schedule) | ||||||
|  |       security:  | ||||||
|  |         - bearer: [] | ||||||
|  |       requestBody: | ||||||
|  |         required: true | ||||||
|  |         content: | ||||||
|  |           application/x-www-form-urlencoded: | ||||||
|  |             schema: | ||||||
|  |               type: object | ||||||
|  |               properties: | ||||||
|  |                 date: | ||||||
|  |                   type: string | ||||||
|  |                   description: Follow the iso 8601 ("YYYY-MM-DD") | ||||||
|  |                 CourseId: | ||||||
|  |                   type: integer | ||||||
|  |                 duration: | ||||||
|  |                   type: number | ||||||
|  |                 classroom: | ||||||
|  |                   type: string | ||||||
|  |       responses: | ||||||
|  |         '201': | ||||||
|  |           description: Lesson created  | ||||||
|  |         '401': | ||||||
|  |           $ref: '#/components/responses/UnauthorizedError' | ||||||
|  |   /lesson/{id}: | ||||||
|  |     parameters: | ||||||
|  |       - name: id | ||||||
|  |         in: path | ||||||
|  |         required: true | ||||||
|  |         schema: | ||||||
|  |           type: integer | ||||||
|  |     get: | ||||||
|  |       summary : See lesson's informations | ||||||
|  |       tags: | ||||||
|  |         - Users | ||||||
|  |         - Lesson | ||||||
|  |         - Ext (Schedule) | ||||||
|  |       responses: | ||||||
|  | |||||||
|  |         '200': | ||||||
|  |           description: OK | ||||||
|  |           content: | ||||||
|  |             application/json: | ||||||
|  |               schema: | ||||||
|  |                 $ref: '#/components/schemas/Lesson' | ||||||
|  |     patch: | ||||||
|  |       summary : Modify Lesson | ||||||
|  |       tags: | ||||||
|  |         - Secretariat | ||||||
|  |         - Lesson | ||||||
|  |         - Ext (Schedule) | ||||||
|  |       security: | ||||||
|  |         - bearer: [] | ||||||
|  |       requestBody: | ||||||
|  |         required: true | ||||||
|  |         content: | ||||||
|  |           application/x-www-form-urlencoded: | ||||||
|  |              schema: | ||||||
|  |               type: object | ||||||
|  |               properties: | ||||||
|  |                 date: | ||||||
|  |                   type: string | ||||||
|  |                   description: Follow the iso 8601 ("YYYY-MM-DD") | ||||||
|  |                 IDcourse: | ||||||
|  |                   type: integer | ||||||
|  |                 duration: | ||||||
|  |                   type: number | ||||||
|  |                 classroom: | ||||||
|  |                   type: string | ||||||
|  |       responses: | ||||||
|  |         '201': | ||||||
|  |           description: Lesson modified | ||||||
|  |         '401': | ||||||
|  |           $ref: '#/components/responses/UnauthorizedError' | ||||||
|            |            | ||||||
|  |     delete: | ||||||
|  |       summary: Delete lesson | ||||||
|  |       tags: | ||||||
|  |         - Lesson | ||||||
|  |         - Secretariat | ||||||
|  |         - Ext (Schedule) | ||||||
|  |       security:  | ||||||
|  |         - bearer: [] | ||||||
|  |       responses: | ||||||
|  |         '201': | ||||||
|  |           description: Success | ||||||
|  |         '401': | ||||||
|  |           $ref: '#/components/responses/UnauthorizedError' | ||||||
|  |   /scheduleRequest: | ||||||
|  |     post: | ||||||
|  |       summary: Create a new request | ||||||
|  |       tags: | ||||||
|  |         - Teacher | ||||||
|  |         - ScheduleRequest | ||||||
|  |         - Ext (Schedule) | ||||||
|  |       requestBody: | ||||||
|  |         required: true | ||||||
|  |         content: | ||||||
|  |           application/x-www-form-urlencoded: | ||||||
|  |             schema: | ||||||
|  |               type: object | ||||||
|  |               properties: | ||||||
|  |                 requestType: | ||||||
|  |                   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  | ||||||
|  |         '401': | ||||||
|  |           $ref: '#/components/responses/UnauthorizedError' | ||||||
|  |  | ||||||
|  |   /scheduleRequest/{id}: | ||||||
|  |     parameters: | ||||||
|  |       - name: id | ||||||
|  |         in: path | ||||||
|  |         required: true | ||||||
|  |         schema: | ||||||
|  |           type: integer | ||||||
|  |     get: | ||||||
|  |       summary : See request information | ||||||
|  |       tags: | ||||||
|  |         - Teacher | ||||||
|  |         - Secretariat | ||||||
|  |         - ScheduleRequest | ||||||
|  |         - Ext (Schedule) | ||||||
|  |       responses: | ||||||
|  |         '200': | ||||||
|  |           description: OK | ||||||
| 
				
					
						tonitch
						commented  c'est pas très grave mais ça me parait weird d'avoir un endpoint avec un tired. j'utiliserait personnelment du PascalCase  c'est pas très grave mais ça me parait weird d'avoir un endpoint avec un tired. j'utiliserait personnelment du PascalCase `/DisplayArticle` ou camelCase `/displayArticle` | |||||||
|  |           content: | ||||||
|  |             application/json: | ||||||
|  |               schema: | ||||||
|  |                 $ref: '#/components/schemas/ScheduleRequest' | ||||||
|  |     patch: | ||||||
|  |       summary : Modify request | ||||||
|  |       tags: | ||||||
|  |         - Teacher | ||||||
|  |         - ScheduleRequest | ||||||
|  |         - Ext (Schedule) | ||||||
|  |       requestBody: | ||||||
|  |         required: true | ||||||
|  |         content: | ||||||
|  |           application/x-www-form-urlencoded: | ||||||
|  |              schema: | ||||||
|  |               type: object | ||||||
|  |               properties: | ||||||
|  |                 newDate: | ||||||
|  |                   type: string | ||||||
|  |                 newClassroom: | ||||||
|  |                   type: string | ||||||
|  |                 newCourseId: | ||||||
|  |                   type: integer | ||||||
|  |       responses: | ||||||
|  |         '201': | ||||||
|  |           description: Request modified | ||||||
|  |     delete: | ||||||
|  |       summary: Delete request | ||||||
|  |       tags: | ||||||
|  |         - Teacher | ||||||
|  |         - Secretariat | ||||||
|  |         - ScheduleRequest | ||||||
|  |         - Ext (Schedule) | ||||||
|  |       responses: | ||||||
|  |         '201': | ||||||
|  |           description: Success | ||||||
|    |    | ||||||
|  |   /display: | ||||||
|  |     post: | ||||||
|  |         summary: Create a new display | ||||||
|  |         tags: | ||||||
|  |           - Display | ||||||
|  |           - Ext (Schedule) | ||||||
|  |         requestBody: | ||||||
|  |           required: true | ||||||
|  |           content: | ||||||
|  |             application/x-www-form-urlencoded: | ||||||
|  |               schema: | ||||||
|  |                 type: object | ||||||
|  |                 properties: | ||||||
|  |                   timeMode: | ||||||
|  |                     type: string | ||||||
|  |                   displayMode: | ||||||
|  |                     type: string | ||||||
|  |                   userId: | ||||||
|  |                     type: integer | ||||||
|  |         responses: | ||||||
|  |           '201': | ||||||
|  |             description: display created  | ||||||
|            |            | ||||||
|  |   /display/{id}: | ||||||
|  |     parameters: | ||||||
| # Extension publication scientifique  |         - name: id | ||||||
|  |           in: path | ||||||
|  |           required: true | ||||||
|  |           schema: | ||||||
|  |             type: integer | ||||||
|  |     get: | ||||||
|  |       summary : See display information | ||||||
|  |       tags: | ||||||
|  |         - Users | ||||||
|  |         - Display | ||||||
|  |         - Ext (Schedule) | ||||||
|  |       responses: | ||||||
|  |         '200': | ||||||
|  |           description: OK | ||||||
|  |           content: | ||||||
|  |             application/json: | ||||||
|  |               schema: | ||||||
|  |                 $ref: '#/components/schemas/Display' | ||||||
|  |     patch: | ||||||
|  |       summary : Modify display | ||||||
|  |       tags: | ||||||
|  |         - Users | ||||||
|  |         - Display | ||||||
|  |         - Ext (Schedule) | ||||||
|  |       requestBody: | ||||||
|  |         required: true | ||||||
|  |         content: | ||||||
|  |           application/x-www-form-urlencoded: | ||||||
|  |              schema: | ||||||
|  |               type: object | ||||||
|  |               properties: | ||||||
|  |                   timeMode: | ||||||
|  |                     type: string | ||||||
|  |                   displayMode: | ||||||
|  |                     type: string | ||||||
|  |       responses: | ||||||
|  |         '201': | ||||||
|  |           description: Display modified | ||||||
|  |  # Extension publication scientifique  | ||||||
|  |  | ||||||
|   /article: |   /article: | ||||||
|     post: |     post: | ||||||
| @ -421,7 +657,6 @@ paths: | |||||||
|         "views": 420, |         "views": 420, | ||||||
|         "authors" : [] |         "authors" : [] | ||||||
|         } |         } | ||||||
|                |  | ||||||
|   /article/{id}: |   /article/{id}: | ||||||
|     parameters: |     parameters: | ||||||
|       - name: id |       - name: id | ||||||
| @ -634,7 +869,6 @@ components: | |||||||
|         "id": 42, |         "id": 42, | ||||||
|         "courses": ['Math', 'Info'] |         "courses": ['Math', 'Info'] | ||||||
|         } |         } | ||||||
|          |  | ||||||
|     Article: |     Article: | ||||||
|       type: object |       type: object | ||||||
|       properties: |       properties: | ||||||
| @ -695,11 +929,82 @@ components: | |||||||
|         "title": "graph's second theorem study", |         "title": "graph's second theorem study", | ||||||
|         "author" : "john doe" |         "author" : "john doe" | ||||||
|         } |         } | ||||||
|  |     Lesson : | ||||||
|  |       type: object | ||||||
|  |       properties: | ||||||
|  |         id: | ||||||
|  |           type: integer | ||||||
|  |         date: | ||||||
|  |           type: string | ||||||
|  |           description: Follow the iso 8601 ("YYYY-MM-DD") | ||||||
|  |         duration: | ||||||
|  |           type: number | ||||||
|  |           description: duration of a course in hours | ||||||
|  |         classroom: | ||||||
|  |           type: string | ||||||
|  |         courseId: | ||||||
|  |           type: integer | ||||||
|  |       example: | ||||||
|  |           { | ||||||
|  |             "id": 12, | ||||||
|  |             "date": "2023-12-01", | ||||||
|  |             "duration": 1.5, | ||||||
|  |             "classroom": "AMPHI01", | ||||||
|  |             "courseId": 12 | ||||||
|  |           } | ||||||
|  |     ScheduleRequest: | ||||||
|  |       type: object | ||||||
|  |       properties: | ||||||
|  |         id: | ||||||
|  |           type: integer | ||||||
|  |         requestType: | ||||||
|  |           type: string | ||||||
|  |         lessonId: | ||||||
|  |           type: integer | ||||||
|  |         teacherId: | ||||||
|  |           type: integer | ||||||
|  |         newDate: | ||||||
|  |           type: string | ||||||
|  |           description: Follow the iso 8601 ("YYYY-MM-DD") | ||||||
|  |         newClassroom: | ||||||
|  |           type: string | ||||||
|  |         newCourseId: | ||||||
|  |           type: integer | ||||||
|  |       example: | ||||||
|  |         { | ||||||
|  |           "id": 12, | ||||||
|  |           "requestType": "moveLesson", | ||||||
|  |           "lessonId": 52, | ||||||
|  |           "teacherId": 12, | ||||||
|  |           "newDate": "2023-12-20", | ||||||
|  |           "newClassroom":, | ||||||
|  |           "newCourseId":, | ||||||
|  |         } | ||||||
|      |      | ||||||
|          |     Display: | ||||||
|  |       type: object | ||||||
|  |       properties: | ||||||
|  |         id: | ||||||
|  |           type: integer | ||||||
|  |         timeMode: | ||||||
|  |           type: string | ||||||
|  |           description: Define the period displayed on the schedule (week,month,quadrimester..) | ||||||
|  |         displayMode: | ||||||
|  |           type: string | ||||||
|  |         userId: | ||||||
|  |           type: integer | ||||||
|  |           description: Id of the user who owns this display | ||||||
|  |       example: | ||||||
|  |         { | ||||||
|  |           "id": 12, | ||||||
|  |           "timeMode": "month", | ||||||
|  |           "displayMode": "grid", | ||||||
|  |           "UserId": 12 | ||||||
|  |         } | ||||||
|   responses: |   responses: | ||||||
|     UnauthorizedError: |     UnauthorizedError: | ||||||
|       description: Unauthorized access or missing bearer  |       description: Unauthorized access or missing bearer  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	
changer pour le pdf dans B64 trou du cul va