9 Commits

Author SHA1 Message Date
248c14df38 Merge branch 'master' into salutcesmoileo
jaireglelesconflits
2023-12-14 14:08:02 +01:00
74e6d18f97 caca
Fix vos trucs
2023-12-13 15:39:20 +01:00
aacf1eef6c Applique vos remarques 2023-12-12 12:01:45 +01:00
bab117a421 TRAVAIL TERMINE ! 2023-12-11 12:12:17 +01:00
83b85fc63c Ajoute le tag de mon extension
https://www.youtube.com/watch?v=QwLvrnlfdNo
2023-12-11 11:35:40 +01:00
8696857651 Merge branch 'master' into salutcesmoileo
trop bien
2023-12-11 11:11:09 +01:00
e5717e4c3d Ajout des endpoints de mon extension
zartek
2023-12-09 20:24:43 +01:00
662da80039 Ajout des Désinscriptions Réinscriptions et Demande de Bourses ainsi que des demandes de dispenses
Plus que les endpoints a faire :)
2023-12-09 12:17:31 +01:00
8100978e35 ajout de ReqRequest post et get et ajout de RegRequests
tkt le s
2023-12-08 15:05:33 +01:00

View File

@ -295,6 +295,8 @@ paths:
description: Cursus created
'401':
$ref: '#/components/responses/UnauthorizedError'
/cursus/{id}:
get:
summary: See Cursus's informations
@ -365,7 +367,141 @@ paths:
description: Cursus modified
'401':
$ref: '#/components/responses/UnauthorizedError'
/Requests/{type}:
get:
summary: Give an array of every requests of the specified type
tags :
- Requests
- SI
- Ext (Student Registration)
responses :
'200':
description : OK
content :
application/json :
schema :
type : array
items :
allOf:
- type : object
properties :
id :
type : integer
- oneOf :
- $ref : '#/components/schemas/RRRequest'
- $ref : '#/components/schemas/SSRequest'
- $ref : '#/components/schemas/UnRegRequest'
- $ref : '#/components/schemas/ExempRequest'
- $ref : '#/components/schemas/RegRequest'
discriminator:
propertyName : type
parameters:
- name: type
in: path
description: type of the request
required: true
schema:
type: integer
post :
summary: create a request
tags :
- Requests
- Guest
- Student
- Ext (Student Registration)
security:
- bearer: []
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
oneOf:
- $ref : '#/components/schemas/RRRequest'
- $ref : '#/components/schemas/SSRequest'
- $ref : '#/components/schemas/UnRegRequest'
- $ref : '#/components/schemas/ExempRequest'
- $ref : '#/components/schemas/RegRequest'
discriminator:
propertyName : type
responses:
'201':
description: New request created
'401':
$ref : '#/components/responses/UnauthorizedError'
/Requests/{type}/{id}:
parameters:
- name: type
in: path
description: type of the request
required: true
schema:
type: integer
- name : id
in : path
description: id of the selected Request
required : true
schema :
type : integer
get :
summary : Get all the data composing a request
tags :
- Requests
- SI
- Teacher
- Ext (Student Registration)
responses :
'200':
description : OK
content :
application/json :
schema :
allOf:
- type : object
properties :
id :
type : integer
- oneOf :
- $ref : '#/components/schemas/RRRequest'
- $ref : '#/components/schemas/SSRequest'
- $ref : '#/components/schemas/UnRegRequest'
- $ref : '#/components/schemas/ExempRequest'
- $ref : '#/components/schemas/RegRequest'
discriminator:
propertyName : type
patch:
summary: Change the state of request
tags:
- Requests
- SI
- Teacher
- Ext (Student Registration)
security:
- bearer: []
requestBody:
required : true
content:
application/x-www-form-urlencoded:
schema:
oneOf :
- $ref : '#/components/schemas/RRRequest'
- $ref : '#/components/schemas/SSRequest'
- $ref : '#/components/schemas/UnRegRequest'
- $ref : '#/components/schemas/ExempRequest'
- $ref : '#/components/schemas/RegRequest'
discriminator:
propertyName : type
responses:
'201':
description: State modified
'401':
$ref: '#/components/responses/UnauthorizedError'
/lesson:
post:
@ -555,7 +691,7 @@ paths:
required: true
content:
application/x-www-form-urlencoded:
schema:
schema:
type: object
properties:
timeMode:
@ -776,6 +912,7 @@ paths:
items:
$ref: "#/components/schemas/DisplayArticle"
components:
securitySchemes:
bearer:
@ -869,6 +1006,84 @@ components:
"id": 42,
"courses": ['Math', 'Info']
}
RegRequest:
type : object
properties:
Name :
type: string
Firstname :
type : string
Address :
$ref: "#/components/schemas/Address"
Email:
type : string
BirthDate:
type : string
description: Follow the iso 8601 ("YYYY-MM-DD")
Cursus:
type : integer
description : ID of a specific cursus
Photo:
type : string
description: Path of the picture that the user uploaded
IdentityCard:
type : string
description: Path of the picture of the user's identity card
Degree:
type : string
description: Path of the pdf containing the user's degree
Certificate:
type : string
description: Path of the pdf containing the user's admission certificate (optionnal)
ForeignerCertificate:
type : string
description: Path of the pdf containing the user's foreigner certificate (optionnal)
State:
type : string
RRRequest:
type : object
properties :
RegNo :
type : integer
NewCursusid :
type : integer
State :
type : string
SSRequest:
type : object
properties :
RegNo :
type : integer
Amount :
type : integer
Document :
type : string
description : justification document for a scholarship
UnRegRequest :
type : object
properties :
RegNo :
type : integer
State :
type : string
ExempRequest :
type : object
properties :
RegNo :
type : integer
Courseid :
type : integer
State :
type : string
Article:
type: object
properties:
@ -1001,9 +1216,11 @@ components:
"displayMode": "grid",
"UserId": 12
}
responses:
UnauthorizedError:
description: Unauthorized access or missing bearer
UnauthorizedError:
description: Unauthorized access or missing bearer