Class CallbackController
java.lang.Object
xyz.nardone.agenda_fps.servizio.controllers.CallbackController
Endpoints for creating, updating, and listing callbacks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new callback.deleteCallbackById(Integer callbackId) Deletes a callback by ID.getAll()Returns all callbacks.getCallback(int callbackId) Returns a callback by ID.intReturns the total number of callbacks.intgetTodayCallbacksCount(String data) Returns the number of callbacks scheduled for a specific date.updateCallback(CallbackIds callbackIds) Updates an existing callback.
-
Constructor Details
-
CallbackController
public CallbackController()
-
-
Method Details
-
getAll
-
getCallback
Returns a callback by ID. -
deleteCallbackById
-
updateCallback
@PutMapping(path="/update") @ResponseBody public Response updateCallback(@RequestBody CallbackIds callbackIds) Updates an existing callback. -
addCallback
Creates a new callback. -
getCallbacksCount
@GetMapping(path="/count") @ResponseBody public int getCallbacksCount()Returns the total number of callbacks. -
getTodayCallbacksCount
@PostMapping(path="/today") @ResponseBody public int getTodayCallbacksCount(@RequestParam String data) Returns the number of callbacks scheduled for a specific date.
-