Class ConcreteShiftRestEndpoint

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

@RestController @RequestMapping("/concrete-shifts/") public class ConcreteShiftRestEndpoint extends Object
  • Constructor Details

    • ConcreteShiftRestEndpoint

      public ConcreteShiftRestEndpoint()
  • Method Details

    • createNewConcreteShift

      @RequestMapping(method=POST) public org.springframework.http.ResponseEntity<?> createNewConcreteShift(@RequestBody RegisterConcreteShiftDTO assegnazione)
    • getSingleDoctorConcreteShift

      @RequestMapping(method=GET, path="/user_id={userID}") public org.springframework.http.ResponseEntity<?> getSingleDoctorConcreteShift(@PathVariable Long userID) throws ParseException
      Throws:
      ParseException
    • getAllConcreteShifts

      @RequestMapping(method=GET) public org.springframework.http.ResponseEntity<?> getAllConcreteShifts() throws ParseException
      Throws:
      ParseException
    • modifyConcreteShift

      @RequestMapping(method=PUT) public org.springframework.http.ResponseEntity<?> modifyConcreteShift(@RequestBody ModifyConcreteShiftDTO modifyConcreteShiftDTO)
      Permette la modifica di un assegnazione turno già esistente.
      Parameters:
      modifyConcreteShiftDTO -
      Returns:
    • deleteConcreteShift

      @RequestMapping(method=DELETE, path="/{idAssegnazione}") public org.springframework.http.ResponseEntity<?> deleteConcreteShift(@PathVariable Long idAssegnazione)
    • getAvailableUsersForReplacement

      @RequestMapping(method=POST, path="/available-users-for-replacement/") public org.springframework.http.ResponseEntity<?> getAvailableUsersForReplacement(@RequestBody GetAvailableUsersForReplacementDTO dto)