Class CallbackController

java.lang.Object
xyz.nardone.agenda_fps.servizio.controllers.CallbackController

@Controller @RequestMapping(path="/callbacks") public class CallbackController extends Object
Endpoints for creating, updating, and listing callbacks.
  • Constructor Details

    • CallbackController

      public CallbackController()
  • Method Details

    • getAll

      @GetMapping(path="/all") @ResponseBody public Iterable<Callback> getAll()
      Returns all callbacks.
    • getCallback

      @PostMapping(path="/get") @ResponseBody public Callback getCallback(@RequestParam int callbackId)
      Returns a callback by ID.
    • deleteCallbackById

      @DeleteMapping(path="/delete") @ResponseBody public Response deleteCallbackById(@RequestParam Integer callbackId)
      Deletes a callback by ID.
    • updateCallback

      @PutMapping(path="/update") @ResponseBody public Response updateCallback(@RequestBody CallbackIds callbackIds)
      Updates an existing callback.
    • addCallback

      @PutMapping(path="/add") @ResponseBody public Response addCallback(@RequestBody CallbackIds c)
      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.