Class ShiftController
- java.lang.Object
-
- org.optaweb.employeerostering.service.shift.ShiftController
-
@RestController @RequestMapping("/rest/tenant/{tenantId}/shift") @CrossOrigin @Validated public class ShiftController extends Object
-
-
Constructor Summary
Constructors Constructor Description ShiftController(ShiftService shiftService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<ShiftView>createShift(@Min(0L) Integer tenantId, @Valid ShiftView shiftView)org.springframework.http.ResponseEntity<Boolean>deleteShift(@Min(0L) Integer tenantId, @Min(0L) Long id)org.springframework.http.ResponseEntity<ShiftView>getShift(@Min(0L) Integer tenantId, @Min(0L) Long id)org.springframework.http.ResponseEntity<List<ShiftView>>getShiftList(@Min(0L) Integer tenantId)org.springframework.http.ResponseEntity<ShiftView>updateShift(@Min(0L) Integer tenantId, @Valid ShiftView shiftView)
-
-
-
Constructor Detail
-
ShiftController
public ShiftController(ShiftService shiftService)
-
-
Method Detail
-
getShiftList
@GetMapping("/") public org.springframework.http.ResponseEntity<List<ShiftView>> getShiftList(@PathVariable @Min(0L) @Min(0L) Integer tenantId)
-
getShift
@GetMapping("/{id}") public org.springframework.http.ResponseEntity<ShiftView> getShift(@PathVariable @Min(0L) @Min(0L) Integer tenantId, @PathVariable @Min(0L) @Min(0L) Long id)
-
deleteShift
@DeleteMapping("/{id}") public org.springframework.http.ResponseEntity<Boolean> deleteShift(@PathVariable @Min(0L) @Min(0L) Integer tenantId, @PathVariable @Min(0L) @Min(0L) Long id)
-
createShift
@PostMapping("/add") public org.springframework.http.ResponseEntity<ShiftView> createShift(@PathVariable @Min(0L) @Min(0L) Integer tenantId, @RequestBody @Valid @Valid ShiftView shiftView)
-
-