Class AppointmentController
java.lang.Object
xyz.nardone.agenda_fps.servizio.controllers.AppointmentController
Endpoints for managing appointments and related statistics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new appointment.Deletes all appointments.deleteAppointmentById(Integer appointmentId) Deletes an appointment by ID.filterAppointments(Integer bankerId, String startDate, String endDate, String esito) Returns appointments filtered by banker, date range, and outcome.Returns all appointments.getAppointment(Integer appointmentId) Returns a single appointment as an ID-based DTO.getBankerAppointmentsStatistics(Integer id_banker) Returns aggregated statistics for a single banker.getStatistics(Integer bankerId, String startDate, String endDate, String esito) Returns aggregated statistics for optional filters (banker, date range, outcome).updateAppointment(AppointmentIds appointmentIds) Updates an existing appointment.
-
Constructor Details
-
AppointmentController
public AppointmentController()
-
-
Method Details
-
getAllAppointments
Returns all appointments. -
getAppointment
@PostMapping(path="/get") @ResponseBody public AppointmentIds getAppointment(@RequestParam Integer appointmentId) Returns a single appointment as an ID-based DTO. -
getBankerAppointmentsStatistics
@PostMapping(path="banker_statistics") @ResponseBody public BankerAppointmentsStatistics getBankerAppointmentsStatistics(@RequestParam Integer id_banker) Returns aggregated statistics for a single banker. -
deleteAppointmentById
-
deleteAllAppointments
Deletes all appointments. -
updateAppointment
@PutMapping(path="/update") @ResponseBody public Response updateAppointment(@RequestBody AppointmentIds appointmentIds) Updates an existing appointment. -
addAppointment
@PutMapping(path="/add") @ResponseBody public Response addAppointment(@RequestBody AppointmentIds a) Creates a new appointment. -
getStatistics
@PostMapping(path="/statistics") @ResponseBody public AppointmentsStatistics getStatistics(@RequestParam(required=false) Integer bankerId, @RequestParam(required=false) String startDate, @RequestParam(required=false) String endDate, @RequestParam(required=false) String esito) Returns aggregated statistics for optional filters (banker, date range, outcome). -
filterAppointments
@PostMapping(path="/filter") @ResponseBody public List<Appointment> filterAppointments(@RequestParam(required=false) Integer bankerId, @RequestParam(required=false) String startDate, @RequestParam(required=false) String endDate, @RequestParam(required=false) String esito) Returns appointments filtered by banker, date range, and outcome.
-