Compare commits

...

5 Commits

Author SHA1 Message Date
eae3fe2154 Merge branch 'master' into wal/front/CourseManagementSecretary
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 2m5s
Build and test backend / Test-backend (pull_request) Successful in 2m3s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 24s
2024-03-13 17:49:29 +01:00
4f511bf066 Merge pull request 'HUUUUGE CHANGE' (#97) from Max/Backend/ServiceInscription into master
All checks were successful
Build and test backend / Build-backend (push) Successful in 2m15s
Build and test backend / Test-backend (push) Successful in 1m19s
deploy to production / deploy-frontend (push) Successful in 26s
deploy to production / deploy-backend (push) Successful in 2m24s
Build and test FrontEnd / Build-frontend (push) Successful in 26s
Reviewed-on: #97
2024-03-13 15:44:16 +01:00
62f64eed60 HUUUUGE CHANGE
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 2m0s
Build and test backend / Test-backend (pull_request) Successful in 2m2s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 24s
2024-03-13 15:36:13 +01:00
58a4c87661
Removing test gradle
All checks were successful
Build and test backend / Build-backend (push) Successful in 2m13s
Build and test backend / Test-backend (push) Successful in 1m20s
deploy to production / deploy-frontend (push) Successful in 25s
deploy to production / deploy-backend (push) Successful in 2m18s
Build and test FrontEnd / Build-frontend (push) Successful in 24s
2024-03-13 14:39:34 +01:00
f52cb31189 Adding info about self (#88)
All checks were successful
Build and test backend / Build-backend (push) Successful in 2m13s
deploy to production / deploy-backend (push) Successful in 2m24s
Build and test FrontEnd / Build-frontend (push) Successful in 25s
Build and test backend / Test-backend (push) Successful in 1m21s
deploy to production / deploy-frontend (push) Successful in 27s
Reviewed-on: #88
Reviewed-by: Wal <karpinskiwal@gmail.com>
Reviewed-by: Maxime <231026@umons.ac.be>
Reviewed-by: LeoMoulin <leomoulin125@gmail.com>
Co-authored-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
Co-committed-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
2024-03-13 09:54:56 +01:00
3 changed files with 44 additions and 5 deletions

View File

@ -4,5 +4,6 @@ public enum Role {
Teacher,
Student,
Admin,
InscriptionService,
Secretary;
}

View File

@ -18,8 +18,3 @@ var dev = tasks.register<NpmTask>("dev") {
tasks.register<NpmTask>("run") {
dependsOn(dev)
}
tasks.register<NpmTask>("test") {
dependsOn(tasks.npmInstall)
args.set(listOf("run", "test:unit"))
}

View File

@ -18,6 +18,25 @@ export async function getUser(id){
return restGet(endpoint);
}
/**
* Alterable datas of user.
* usage by secretary
*
* @param id regno of the user
* @param data data to change
*
* - lastName
* - firstName
* - birthDate
* - role
* - email
* - photo
* - Adress
*/
export async function alterUser(id, data){
return restPatch("/user/" + id, data);
}
/**
* Reserved for secretary roles. Allow to list all user on the plateform
*/
@ -25,3 +44,27 @@ export async function getAllUsers(){
return restGet("/users");
}
/**
* Get informations about yourself
* - RegNo
* - FirstName / LastName
* - email
* - adressId (?)
* - birthDate
* - role
*/
export async function getSelf(){
return restGet("/user");
}
/**
* Alterable datas are
* - email
* - photo
* - Adress
* - Password
*/
export async function alterSelf(data){
return restPatch("/user", data);
}