Class RotationController
- java.lang.Object
-
- org.optaweb.employeerostering.service.rotation.RotationController
-
@RestController @RequestMapping("/rest/tenant/{tenantId}/rotation") @CrossOrigin @Validated public class RotationController extends Object
-
-
Constructor Summary
Constructors Constructor Description RotationController(RotationService rotationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<TimeBucketView>createTimeBucket(@Min(0L) Integer tenantId, @Valid TimeBucketView timeBucketView)org.springframework.http.ResponseEntity<Boolean>deleteTimeBucket(@Min(0L) Integer tenantId, @Min(0L) Long id)org.springframework.http.ResponseEntity<TimeBucketView>getTimeBucket(@Min(0L) Integer tenantId, @Min(0L) Long id)org.springframework.http.ResponseEntity<List<TimeBucketView>>getTimeBucketList(@Min(0L) Integer tenantId)org.springframework.http.ResponseEntity<TimeBucketView>updateTimeBucket(@Min(0L) Integer tenantId, @Valid TimeBucketView timeBucketView)
-
-
-
Constructor Detail
-
RotationController
public RotationController(RotationService rotationService)
-
-
Method Detail
-
getTimeBucketList
@GetMapping("/") public org.springframework.http.ResponseEntity<List<TimeBucketView>> getTimeBucketList(@PathVariable @Min(0L) @Min(0L) Integer tenantId)
-
getTimeBucket
@GetMapping("/{id}") public org.springframework.http.ResponseEntity<TimeBucketView> getTimeBucket(@PathVariable @Min(0L) @Min(0L) Integer tenantId, @PathVariable @Min(0L) @Min(0L) Long id)
-
deleteTimeBucket
@DeleteMapping("/{id}") public org.springframework.http.ResponseEntity<Boolean> deleteTimeBucket(@PathVariable @Min(0L) @Min(0L) Integer tenantId, @PathVariable @Min(0L) @Min(0L) Long id)
-
createTimeBucket
@PostMapping("/add") public org.springframework.http.ResponseEntity<TimeBucketView> createTimeBucket(@PathVariable @Min(0L) @Min(0L) Integer tenantId, @RequestBody @Valid @Valid TimeBucketView timeBucketView)
-
updateTimeBucket
@PutMapping("/update") public org.springframework.http.ResponseEntity<TimeBucketView> updateTimeBucket(@PathVariable @Min(0L) @Min(0L) Integer tenantId, @RequestBody @Valid @Valid TimeBucketView timeBucketView)
-
-