feat: added most of shared API calls

This commit is contained in:
Pierre Tellier
2025-02-26 15:31:02 +01:00
parent 1a6db7c953
commit 8d4dc7916d
10 changed files with 117 additions and 25 deletions

@ -31,7 +31,7 @@ public class AdminApiService {
public Iterable<Project> getProjectsOfAdmin(String email) {
return projectService.getProjectsByAdminId(
administratorService.getAdministratorById(
this.userService.getIdUserByEmail(email)));
this.userService.getUserByEmail(email).getIdUser()));
}
// TODO
@ -57,7 +57,7 @@ public class AdminApiService {
// TODO: solve todo + test
public void addNewProject(Project project) {
projectService.addNewProject(project); // TODO: how can the user know the ID ?
projectService.addNewProject(project); // TODO: how can the front know the ID ?
}
// TODO