Class CalendarService

java.lang.Object
sk.iway.iwcm.calendar.CalendarService

@RestController @RequestMapping(path="/rest/events-calendar") public class CalendarService extends Object
  • Constructor Details

    • CalendarService

      public CalendarService()
  • Method Details

    • getEventsBetweenDates

      public List<EventsCalendarBean> getEventsBetweenDates(@RequestParam Date from, @RequestParam Date to)
    • getEventsBetweenDatesByType

      @RequestMapping(path="", method=GET) public List<EventsCalendarBean> getEventsBetweenDatesByType(@RequestParam(required=true,name="from") String from, @RequestParam(required=true,name="to") String to, @RequestParam(required=false,name="types") List<Integer> types)
    • getEventsForMonth

      @RequestMapping(path="/{year}/{month}", method=GET) public List<EventsCalendarBean> getEventsForMonth(@PathVariable int year, @PathVariable int month)
    • getEventsByTypeForMonth

      @RequestMapping(path="/{year}/{month}/{types}", method=GET) public List<EventsCalendarBean> getEventsByTypeForMonth(@PathVariable int year, @PathVariable int month, @PathVariable List<Integer> types)
    • getEventTypes

      @RequestMapping(path="/types", method=GET) public List<CalendarTypeBean> getEventTypes()