Package org.cswteams.ms3.rest
Class HolidayRestEndpoint
java.lang.Object
org.cswteams.ms3.rest.HolidayRestEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<List<HolidayDTO>> getHolidays(Integer currentYear, String currentCountry) org.springframework.http.ResponseEntity<?>
-
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)
-