@RestController
@RequestMapping(value="/rest/tenant/{tenantId}/spot")
@CrossOrigin
@Validated
public class SpotController
extends Object
| Constructor and Description |
|---|
SpotController(SpotService spotService) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Spot> |
createSpot(@Min(value=0L) Integer tenantId,
@Valid SpotView spotView) |
org.springframework.http.ResponseEntity<Boolean> |
deleteSpot(@Min(value=0L) Integer tenantId,
@Min(value=0L) Long id) |
org.springframework.http.ResponseEntity<Spot> |
getSpot(@Min(value=0L) Integer tenantId,
@Min(value=0L) Long id) |
org.springframework.http.ResponseEntity<List<Spot>> |
getSpotList(@Min(value=0L) Integer tenantId) |
org.springframework.http.ResponseEntity<Spot> |
updateSpot(@Min(value=0L) Integer tenantId,
@Valid SpotView spotView) |
public SpotController(SpotService spotService)
@GetMapping(value="/") public org.springframework.http.ResponseEntity<List<Spot>> getSpotList(@PathVariable @Min(value=0L) @Min(value=0L) Integer tenantId)
@GetMapping(value="/{id}")
public org.springframework.http.ResponseEntity<Spot> getSpot(@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> deleteSpot(@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<Spot> createSpot(@PathVariable @Min(value=0L) @Min(value=0L) Integer tenantId, @RequestBody @Valid @Valid SpotView spotView)
Copyright © 2017–2021 JBoss by Red Hat. All rights reserved.