Class ScheduleRestEndpoint

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

@RestController @RequestMapping("/schedule/") public class ScheduleRestEndpoint extends Object
  • 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)