Compare commits
3 Commits
JalonB
...
e5717e4c3d
Author | SHA1 | Date | |
---|---|---|---|
e5717e4c3d | |||
662da80039 | |||
8100978e35 |
@ -286,6 +286,8 @@ paths:
|
|||||||
description: Nouveau cursus crée
|
description: Nouveau cursus crée
|
||||||
'401':
|
'401':
|
||||||
$ref: '#/components/responses/UnauthorizedError'
|
$ref: '#/components/responses/UnauthorizedError'
|
||||||
|
|
||||||
|
|
||||||
/cursus/{id}:
|
/cursus/{id}:
|
||||||
get:
|
get:
|
||||||
summary: Voir les informations sur un cursus
|
summary: Voir les informations sur un cursus
|
||||||
@ -356,6 +358,374 @@ paths:
|
|||||||
$ref: '#/components/responses/UnauthorizedError'
|
$ref: '#/components/responses/UnauthorizedError'
|
||||||
|
|
||||||
|
|
||||||
|
/RegRequests:
|
||||||
|
get :
|
||||||
|
summary : Get an array of every register requests
|
||||||
|
tags :
|
||||||
|
- RegisterRequests
|
||||||
|
responses :
|
||||||
|
'200':
|
||||||
|
description : OK
|
||||||
|
content :
|
||||||
|
application/json :
|
||||||
|
schema :
|
||||||
|
type : array
|
||||||
|
items :
|
||||||
|
$ref : '#/components/schemas/RegRequests'
|
||||||
|
|
||||||
|
|
||||||
|
/RegRequest/{id}:
|
||||||
|
get :
|
||||||
|
summary : Get all the data composing a register request
|
||||||
|
tags :
|
||||||
|
- RegisterRequests
|
||||||
|
responses :
|
||||||
|
'200':
|
||||||
|
description : OK
|
||||||
|
content :
|
||||||
|
application/json :
|
||||||
|
schema :
|
||||||
|
type : object
|
||||||
|
properties:
|
||||||
|
$ref : '#/components/schemas/RegRequest'
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
- name: id
|
||||||
|
in: path
|
||||||
|
description: id of a regRequest
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
|
||||||
|
patch:
|
||||||
|
summary: Change the state of a register request
|
||||||
|
tags:
|
||||||
|
- RegisterRequests
|
||||||
|
security:
|
||||||
|
- bearer: []
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/x-www-form-urlencoded:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
State:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: State modified
|
||||||
|
'401':
|
||||||
|
$ref: '#/components/responses/UnauthorizedError'
|
||||||
|
|
||||||
|
/RegRequest:
|
||||||
|
post :
|
||||||
|
summary: Add a new register request
|
||||||
|
tags :
|
||||||
|
- RegisterRequests
|
||||||
|
security:
|
||||||
|
- bearer: []
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/x-www-form-urlencoded:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/RegRequest'
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: New student created
|
||||||
|
'401':
|
||||||
|
$ref: '#/components/responses/UnauthorizedError'
|
||||||
|
|
||||||
|
/ReRegRequest:
|
||||||
|
get :
|
||||||
|
summary : Get an array of every reregister requests
|
||||||
|
tags :
|
||||||
|
- ReregisterRequests
|
||||||
|
responses :
|
||||||
|
'200':
|
||||||
|
description : OK
|
||||||
|
content :
|
||||||
|
application/json :
|
||||||
|
schema :
|
||||||
|
type : array
|
||||||
|
items :
|
||||||
|
$ref : '#/components/schemas/ReRegRequest'
|
||||||
|
post :
|
||||||
|
summary: Add a new ReRegister request
|
||||||
|
tags :
|
||||||
|
- ReregisterRequests
|
||||||
|
security:
|
||||||
|
- bearer: []
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/x-www-form-urlencoded:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ReRegRequest'
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: New ReRegister request created
|
||||||
|
'401':
|
||||||
|
$ref: '#/components/responses/UnauthorizedError'
|
||||||
|
|
||||||
|
/ReRegRequest/{id}:
|
||||||
|
parameters:
|
||||||
|
- name: id
|
||||||
|
in: path
|
||||||
|
description: id of a reregistrationrequest
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
get:
|
||||||
|
summary : get the data of a single reregistration request
|
||||||
|
tags :
|
||||||
|
- ReregisterRequests
|
||||||
|
responses :
|
||||||
|
'200':
|
||||||
|
description : OK
|
||||||
|
content :
|
||||||
|
application/json :
|
||||||
|
schema :
|
||||||
|
$ref : '#/components/schemas/ReRegRequest'
|
||||||
|
patch:
|
||||||
|
summary: Change the state of a reregister request
|
||||||
|
tags:
|
||||||
|
- ReregisterRequests
|
||||||
|
security:
|
||||||
|
- bearer: []
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/x-www-form-urlencoded:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
State:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: State modified
|
||||||
|
'401':
|
||||||
|
$ref: '#/components/responses/UnauthorizedError'
|
||||||
|
/SSRequest:
|
||||||
|
get :
|
||||||
|
summary : Get an array of every scholarship requests
|
||||||
|
tags :
|
||||||
|
- ScholarshipRequests
|
||||||
|
responses :
|
||||||
|
'200':
|
||||||
|
description : OK
|
||||||
|
content :
|
||||||
|
application/json :
|
||||||
|
schema :
|
||||||
|
type : array
|
||||||
|
items :
|
||||||
|
$ref : '#/components/schemas/SSRequest'
|
||||||
|
post :
|
||||||
|
summary: Add a new scholarship request
|
||||||
|
tags :
|
||||||
|
- ScholarshipRequests
|
||||||
|
security:
|
||||||
|
- bearer: []
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/x-www-form-urlencoded:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/SSRequest'
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: New scholarship request created
|
||||||
|
'401':
|
||||||
|
$ref: '#/components/responses/UnauthorizedError'
|
||||||
|
|
||||||
|
/SSRequest/{id}:
|
||||||
|
parameters:
|
||||||
|
- name: id
|
||||||
|
in: path
|
||||||
|
description: id of a scholarshiprequest
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
get:
|
||||||
|
summary : get the data of a single scholarship request
|
||||||
|
tags :
|
||||||
|
- ScholarshipRequests
|
||||||
|
responses :
|
||||||
|
'200':
|
||||||
|
description : OK
|
||||||
|
content :
|
||||||
|
application/json :
|
||||||
|
schema :
|
||||||
|
$ref : '#/components/schemas/SSRequest'
|
||||||
|
patch:
|
||||||
|
summary: Change the state of a scholarship request
|
||||||
|
tags:
|
||||||
|
- ScholarshipRequests
|
||||||
|
security:
|
||||||
|
- bearer: []
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/x-www-form-urlencoded:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
State:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: State modified
|
||||||
|
'401':
|
||||||
|
$ref: '#/components/responses/UnauthorizedError'
|
||||||
|
|
||||||
|
|
||||||
|
/UnRegRequest:
|
||||||
|
get :
|
||||||
|
summary : Get an array of every unregister requests
|
||||||
|
tags :
|
||||||
|
- UnregisterRequests
|
||||||
|
responses :
|
||||||
|
'200':
|
||||||
|
description : OK
|
||||||
|
content :
|
||||||
|
application/json :
|
||||||
|
schema :
|
||||||
|
type : array
|
||||||
|
items :
|
||||||
|
$ref : '#/components/schemas/UnRegRequest'
|
||||||
|
post :
|
||||||
|
summary: Add a new unregister request
|
||||||
|
tags :
|
||||||
|
- UnregisterRequests
|
||||||
|
security:
|
||||||
|
- bearer: []
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/x-www-form-urlencoded:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/UnRegRequest'
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: New unregister request created
|
||||||
|
'401':
|
||||||
|
$ref: '#/components/responses/UnauthorizedError'
|
||||||
|
|
||||||
|
/UnRegRequest{id}:
|
||||||
|
parameters:
|
||||||
|
- name: id
|
||||||
|
in: path
|
||||||
|
description: id of a unregistrationrequest
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
get:
|
||||||
|
summary : get the data of a single unregistration request
|
||||||
|
tags :
|
||||||
|
- UnregisterRequests
|
||||||
|
responses :
|
||||||
|
'200':
|
||||||
|
description : OK
|
||||||
|
content :
|
||||||
|
application/json :
|
||||||
|
schema :
|
||||||
|
$ref : '#/components/schemas/UnRegRequest'
|
||||||
|
patch:
|
||||||
|
summary: Change the state of a unregister request
|
||||||
|
tags:
|
||||||
|
- UnregisterRequests
|
||||||
|
security:
|
||||||
|
- bearer: []
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/x-www-form-urlencoded:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
State:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: State modified
|
||||||
|
'401':
|
||||||
|
$ref: '#/components/responses/UnauthorizedError'
|
||||||
|
|
||||||
|
/ExempRequest:
|
||||||
|
get :
|
||||||
|
summary : Get an array of every exemptions requests
|
||||||
|
tags :
|
||||||
|
- ExemptionRequests
|
||||||
|
responses :
|
||||||
|
'200':
|
||||||
|
description : OK
|
||||||
|
content :
|
||||||
|
application/json :
|
||||||
|
schema :
|
||||||
|
type : array
|
||||||
|
items :
|
||||||
|
$ref : '#/components/schemas/ExempRequest'
|
||||||
|
|
||||||
|
post :
|
||||||
|
summary: Add a new exemption request
|
||||||
|
tags :
|
||||||
|
- ExemptionRequests
|
||||||
|
security:
|
||||||
|
- bearer: []
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/x-www-form-urlencoded:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ExempRequest'
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: New exemption request created
|
||||||
|
'401':
|
||||||
|
$ref: '#/components/responses/UnauthorizedError'
|
||||||
|
|
||||||
|
|
||||||
|
/ExempRequest/{id}:
|
||||||
|
parameters:
|
||||||
|
- name: id
|
||||||
|
in: path
|
||||||
|
description: id of a exemption request
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
get:
|
||||||
|
summary : get the data of a single exemption request
|
||||||
|
tags :
|
||||||
|
- ExemptionRequests
|
||||||
|
responses :
|
||||||
|
'200':
|
||||||
|
description : OK
|
||||||
|
content :
|
||||||
|
application/json :
|
||||||
|
schema :
|
||||||
|
$ref : '#/components/schemas/ExempRequest'
|
||||||
|
patch:
|
||||||
|
summary: Change the state of a exemption request
|
||||||
|
tags:
|
||||||
|
- ExemptionRequests
|
||||||
|
security:
|
||||||
|
- bearer: []
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/x-www-form-urlencoded:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
State:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: State modified
|
||||||
|
'401':
|
||||||
|
$ref: '#/components/responses/UnauthorizedError'
|
||||||
components:
|
components:
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
bearer:
|
bearer:
|
||||||
@ -417,7 +787,6 @@ components:
|
|||||||
faculty:
|
faculty:
|
||||||
type: string
|
type: string
|
||||||
teachers:
|
teachers:
|
||||||
type: object
|
|
||||||
$ref: '#/components/schemas/User'
|
$ref: '#/components/schemas/User'
|
||||||
assistants:
|
assistants:
|
||||||
type: array
|
type: array
|
||||||
@ -448,6 +817,109 @@ components:
|
|||||||
"id": 42,
|
"id": 42,
|
||||||
"courses": ['Math', 'Info']
|
"courses": ['Math', 'Info']
|
||||||
}
|
}
|
||||||
|
RegRequest:
|
||||||
|
type : object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type : integer
|
||||||
|
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
|
||||||
|
|
||||||
|
RegRequests:
|
||||||
|
type : object
|
||||||
|
properties:
|
||||||
|
id :
|
||||||
|
type : integer
|
||||||
|
Firstname :
|
||||||
|
type : string
|
||||||
|
Name :
|
||||||
|
type : string
|
||||||
|
Date :
|
||||||
|
type : string
|
||||||
|
description : Follow the iso 8601 ("YYYY-MM-DD")
|
||||||
|
State :
|
||||||
|
type : string
|
||||||
|
|
||||||
|
|
||||||
|
ReRegRequest:
|
||||||
|
type : object
|
||||||
|
properties :
|
||||||
|
id :
|
||||||
|
type : integer
|
||||||
|
RegNo :
|
||||||
|
type : integer
|
||||||
|
NewCursusid :
|
||||||
|
type : integer
|
||||||
|
State :
|
||||||
|
type : string
|
||||||
|
|
||||||
|
|
||||||
|
SSRequest:
|
||||||
|
type : object
|
||||||
|
properties :
|
||||||
|
id :
|
||||||
|
type : integer
|
||||||
|
RegNo :
|
||||||
|
type : integer
|
||||||
|
Amount :
|
||||||
|
type : integer
|
||||||
|
Document :
|
||||||
|
type : string
|
||||||
|
description : justification document for a scholarship
|
||||||
|
|
||||||
|
UnRegRequest :
|
||||||
|
type : object
|
||||||
|
properties :
|
||||||
|
id :
|
||||||
|
type : integer
|
||||||
|
RegNo :
|
||||||
|
type : integer
|
||||||
|
State :
|
||||||
|
type : string
|
||||||
|
|
||||||
|
ExempRequest :
|
||||||
|
type : object
|
||||||
|
properties :
|
||||||
|
id:
|
||||||
|
type : integer
|
||||||
|
RegNo :
|
||||||
|
type : integer
|
||||||
|
Courseid :
|
||||||
|
type : integer
|
||||||
|
State :
|
||||||
|
type : string
|
||||||
|
|
||||||
|
|
||||||
responses:
|
responses:
|
||||||
UnauthorizedError:
|
UnauthorizedError:
|
||||||
description: Permission non accordée
|
description: Permission non accordée
|
||||||
|
Reference in New Issue
Block a user