feat: frontend call now include the token and send the email from the token to backen servie
This commit is contained in:
@ -10,12 +10,12 @@ import org.springframework.web.server.ResponseStatusException;
|
||||
@Service
|
||||
public class AdminApiService {
|
||||
// TODO
|
||||
public Iterable<Administrateurs> getProjects() {
|
||||
public Iterable<Administrateurs> getProjects(String mail) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
|
||||
// TODO
|
||||
public Iterable<Appointment> getUpcomingAppointments() {
|
||||
public Iterable<Appointment> getUpcomingAppointments(String mail) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@ public class AdminApiService {
|
||||
}
|
||||
|
||||
// TODO
|
||||
public void createAppointmentReport(String appointmentId, Report report) {
|
||||
public void createAppointmentReport(String appointmentId, Report report, String email) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
|
||||
|
@ -11,19 +11,19 @@ import org.springframework.web.server.ResponseStatusException;
|
||||
@Service
|
||||
public class EntrepreneurApiService {
|
||||
|
||||
public void editLCSection(String sectionId, LCSection section) {
|
||||
public void editLCSection(String sectionId, LCSection section, String mail) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
|
||||
public void removeLCSection(String sectionId) {
|
||||
public void removeLCSection(String sectionId, String mail) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
|
||||
public void addLCSection(String sectionId, LCSection section) {
|
||||
public void addLCSection(String sectionId, LCSection section, String mail) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
|
||||
public void requestNewProject(Project project) {
|
||||
public void requestNewProject(Project project, String mail) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
}
|
||||
|
@ -9,28 +9,28 @@ import org.springframework.web.server.ResponseStatusException;
|
||||
@Service
|
||||
public class SharedApiService {
|
||||
|
||||
public Iterable<Sections> getLCSection(String projectId, String title, String date) {
|
||||
|
||||
public Iterable<Sections> getLCSection(
|
||||
String projectId, String title, String date, String mail) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
|
||||
public Iterable<Entrepreneurs> getEntrepreneursByProjectId(int projectId) {
|
||||
public Iterable<Entrepreneurs> getEntrepreneursByProjectId(int projectId, String mail) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
|
||||
public Iterable<Administrateurs> getAdminByProjectId(int projectId) {
|
||||
public Iterable<Administrateurs> getAdminByProjectId(int projectId, String mail) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
|
||||
public Iterable<Appointment> getAppointmentsByProjectId(int projectId) {
|
||||
public Iterable<Appointment> getAppointmentsByProjectId(int projectId, String mail) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
|
||||
public void getPDFReport(int appointmentId) {
|
||||
public void getPDFReport(int appointmentId, String mail) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
|
||||
public void createAppointmentRequest(Appointment appointment) {
|
||||
public void createAppointmentRequest(Appointment appointment, String mail) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_IMPLEMENTED, "Not implemented yet");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user