Пример #1
0
 @RequestMapping(value = "/delete/{eventId}", method = RequestMethod.POST)
 public Route deleteEvent(@PathVariable Long eventId) {
   return routeService.deleteRoute(eventId);
 }
Пример #2
0
 @RequestMapping(method = RequestMethod.GET)
 public List<Route> getAll() {
   return routeService.fetchAllRoutes();
 }
Пример #3
0
 @RequestMapping(value = "/{eventId}", method = RequestMethod.GET)
 public Route getEvent(@PathVariable Long eventId) {
   return routeService.fetchRoute(eventId);
 }