Class HolidayRestEndpoint

java.lang.Object
org.cswteams.ms3.rest.HolidayRestEndpoint

@RestController @RequestMapping("/holidays") public class HolidayRestEndpoint extends Object
  • Constructor Details

    • HolidayRestEndpoint

      public HolidayRestEndpoint()
  • Method Details

    • getHolidays

      @RequestMapping(method=GET, path="/year={currentYear}/country={currentCountry}") public org.springframework.http.ResponseEntity<List<HolidayDTO>> getHolidays(@PathVariable Integer currentYear, @PathVariable String currentCountry)
      Returns:
      all registered holidays
    • insertCustomHoliday

      @RequestMapping(method=POST, path="/new-holiday") public org.springframework.http.ResponseEntity<?> insertCustomHoliday(@RequestBody CustomHolidayDTOIn dto)
    • getCustomHolidays

      @RequestMapping(method=GET, path="/custom-holidays") public org.springframework.http.ResponseEntity<?> getCustomHolidays()
    • deleteCustomHoliday

      @RequestMapping(method=DELETE, path="/delete-custom") public org.springframework.http.ResponseEntity<?> deleteCustomHoliday(@RequestBody CustomHolidayIdDTO dto)