Class RotationController


  • @RestController
    @RequestMapping("/rest/tenant/{tenantId}/rotation")
    @CrossOrigin
    @Validated
    public class RotationController
    extends Object
    • 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)