Fix: renamed all the tables, with repo and controller associated to them (might have missed some), and fix some key dependency issues
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
package enseirb.myinpulse.controller;
|
||||
|
||||
import enseirb.myinpulse.model.Administrateurs;
|
||||
import enseirb.myinpulse.model.Appointment;
|
||||
import enseirb.myinpulse.model.Entrepreneurs;
|
||||
import enseirb.myinpulse.model.Sections;
|
||||
import enseirb.myinpulse.model.Administrator;
|
||||
import enseirb.myinpulse.model.DelAppointment;
|
||||
import enseirb.myinpulse.model.Entrepreneur;
|
||||
import enseirb.myinpulse.model.SectionCell;
|
||||
import enseirb.myinpulse.service.SharedApiService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -31,7 +31,7 @@ public class SharedApi {
|
||||
* @return a list of lean canvas sections
|
||||
*/
|
||||
@GetMapping("/shared/project/lcsection/{projectId}/{title}/{date}")
|
||||
public Iterable<Sections> getLCSection(
|
||||
public Iterable<SectionCell> getLCSection(
|
||||
@PathVariable("projectId") String projectId,
|
||||
@PathVariable("title") String title,
|
||||
@PathVariable("date") String date) {
|
||||
@ -44,7 +44,7 @@ public class SharedApi {
|
||||
* @return a list of all entrepreneurs in a project
|
||||
*/
|
||||
@GetMapping("/shared/entrepreneurs/{projectId}")
|
||||
public Iterable<Entrepreneurs> getEntrepreneursByProjectId(@PathVariable int projectId) {
|
||||
public Iterable<Entrepreneur> getEntrepreneursByProjectId(@PathVariable int projectId) {
|
||||
return sharedApiService.getEntrepreneursByProjectId(projectId);
|
||||
}
|
||||
|
||||
@ -57,7 +57,7 @@ public class SharedApi {
|
||||
* @return a list of all project managed by the current admin user
|
||||
*/
|
||||
@GetMapping("/shared/projects/admin/{projectId}")
|
||||
public Iterable<Administrateurs> getAdminByProjectId(@PathVariable int projectId) {
|
||||
public Iterable<Administrator> getAdminByProjectId(@PathVariable int projectId) {
|
||||
return sharedApiService.getAdminByProjectId(projectId);
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ public class SharedApi {
|
||||
* @return a list of all appointments.
|
||||
*/
|
||||
@GetMapping("/shared/projects/appointments/{projectId}")
|
||||
public Iterable<Appointment> getAppointmentsByProjectId(@PathVariable int projectId) {
|
||||
public Iterable<DelAppointment> getAppointmentsByProjectId(@PathVariable int projectId) {
|
||||
return sharedApiService.getAppointmentsByProjectId(projectId);
|
||||
}
|
||||
|
||||
@ -90,7 +90,7 @@ public class SharedApi {
|
||||
* @return TODO
|
||||
*/
|
||||
@PostMapping("/shared/appointment/request")
|
||||
public void createAppointmentRequest(@RequestBody Appointment appointment) {
|
||||
public void createAppointmentRequest(@RequestBody DelAppointment appointment) {
|
||||
sharedApiService.createAppointmentRequest(appointment);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user