Class SpotController


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

        @PostMapping("/update")
        public org.springframework.http.ResponseEntity<Spot> updateSpot​(@PathVariable @Min(0L)
                                                                        @Min(0L) Integer tenantId,
                                                                        @RequestBody @Valid
                                                                        @Valid SpotView spotView)