Class SpotController
- java.lang.Object
-
- org.optaweb.employeerostering.service.spot.SpotController
-
@RestController @RequestMapping("/rest/tenant/{tenantId}/spot") @CrossOrigin @Validated public class SpotController extends Object
-
-
Constructor Summary
Constructors Constructor Description SpotController(SpotService spotService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Spot>createSpot(@Min(0L) Integer tenantId, @Valid SpotView spotView)org.springframework.http.ResponseEntity<Boolean>deleteSpot(@Min(0L) Integer tenantId, @Min(0L) Long id)org.springframework.http.ResponseEntity<Spot>getSpot(@Min(0L) Integer tenantId, @Min(0L) Long id)org.springframework.http.ResponseEntity<List<Spot>>getSpotList(@Min(0L) Integer tenantId)org.springframework.http.ResponseEntity<Spot>updateSpot(@Min(0L) Integer tenantId, @Valid SpotView spotView)
-
-
-
Constructor Detail
-
SpotController
public SpotController(SpotService spotService)
-
-
Method Detail
-
getSpotList
@GetMapping("/") public org.springframework.http.ResponseEntity<List<Spot>> getSpotList(@PathVariable @Min(0L) @Min(0L) Integer tenantId)
-
getSpot
@GetMapping("/{id}") public org.springframework.http.ResponseEntity<Spot> getSpot(@PathVariable @Min(0L) @Min(0L) Integer tenantId, @PathVariable @Min(0L) @Min(0L) Long id)
-
deleteSpot
@DeleteMapping("/{id}") public org.springframework.http.ResponseEntity<Boolean> deleteSpot(@PathVariable @Min(0L) @Min(0L) Integer tenantId, @PathVariable @Min(0L) @Min(0L) Long id)
-
createSpot
@PostMapping("/add") public org.springframework.http.ResponseEntity<Spot> createSpot(@PathVariable @Min(0L) @Min(0L) Integer tenantId, @RequestBody @Valid @Valid SpotView spotView)
-
-