Package org.cswteams.ms3.rest
Class ScheduleRestEndpoint
java.lang.Object
org.cswteams.ms3.rest.ScheduleRestEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<?> deleteSchedule(Long id) org.springframework.http.ResponseEntity<?> Request send by the client when we want to show only the schedules to the plannerorg.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<?> recreateSchedule(Long id)
-
Constructor Details
-
ScheduleRestEndpoint
public ScheduleRestEndpoint()
-
-
Method Details
-
createSchedule
@RequestMapping(method=POST, path="generation") public org.springframework.http.ResponseEntity<?> createSchedule(@RequestBody ScheduleGenerationDTO gs) -
recreateSchedule
@RequestMapping(method=POST, path="regeneration/id={id}") public org.springframework.http.ResponseEntity<?> recreateSchedule(@PathVariable Long id) -
readSchedules
@RequestMapping(method=GET) public org.springframework.http.ResponseEntity<?> readSchedules() -
getAllSchedulesWithDates
@RequestMapping(method=GET, path="/dates/") public org.springframework.http.ResponseEntity<?> getAllSchedulesWithDates()Request send by the client when we want to show only the schedules to the planner- Returns:
- FOUND if the query had success, NOT FOUND if the query returned 0, ERROR if something went wrong
-
readIllegalSchedules
@RequestMapping(method=GET, path="illegals") public org.springframework.http.ResponseEntity<?> readIllegalSchedules() -
deleteSchedule
@RequestMapping(method=DELETE, path="id={id}") public org.springframework.http.ResponseEntity<?> deleteSchedule(@PathVariable Long id)
-