@RestController
@RequestMapping(value="/rest/tenant/{tenantId}/rotation")
@CrossOrigin
@Validated
public class RotationController
extends Object
| Constructor and Description |
|---|
RotationController(RotationService rotationService) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<ShiftTemplateView> |
createShiftTemplate(@Min(value=0L) Integer tenantId,
@Valid ShiftTemplateView shiftTemplateView) |
org.springframework.http.ResponseEntity<Boolean> |
deleteShiftTemplate(@Min(value=0L) Integer tenantId,
@Min(value=0L) Long id) |
org.springframework.http.ResponseEntity<ShiftTemplateView> |
getShiftTemplate(@Min(value=0L) Integer tenantId,
@Min(value=0L) Long id) |
org.springframework.http.ResponseEntity<List<ShiftTemplateView>> |
getShiftTemplateList(@Min(value=0L) Integer tenantId) |
org.springframework.http.ResponseEntity<ShiftTemplateView> |
updateShiftTemplate(@Min(value=0L) Integer tenantId,
@Valid ShiftTemplateView shiftTemplateView) |
public RotationController(RotationService rotationService)
@GetMapping(value="/") public org.springframework.http.ResponseEntity<List<ShiftTemplateView>> getShiftTemplateList(@PathVariable @Min(value=0L) @Min(value=0L) Integer tenantId)
@GetMapping(value="/{id}")
public org.springframework.http.ResponseEntity<ShiftTemplateView> getShiftTemplate(@PathVariable @Min(value=0L)
@Min(value=0L) Integer tenantId,
@PathVariable @Min(value=0L)
@Min(value=0L) Long id)
@DeleteMapping(value="/{id}")
public org.springframework.http.ResponseEntity<Boolean> deleteShiftTemplate(@PathVariable @Min(value=0L)
@Min(value=0L) Integer tenantId,
@PathVariable @Min(value=0L)
@Min(value=0L) Long id)
@PostMapping(value="/add") public org.springframework.http.ResponseEntity<ShiftTemplateView> createShiftTemplate(@PathVariable @Min(value=0L) @Min(value=0L) Integer tenantId, @RequestBody @Valid @Valid ShiftTemplateView shiftTemplateView)
@PutMapping(value="/update") public org.springframework.http.ResponseEntity<ShiftTemplateView> updateShiftTemplate(@PathVariable @Min(value=0L) @Min(value=0L) Integer tenantId, @RequestBody @Valid @Valid ShiftTemplateView shiftTemplateView)
Copyright © 2017–2020 JBoss by Red Hat. All rights reserved.