Class ShoeController

java.lang.Object
com.malay.shortyshoe.controller.ShoeController

@RestController @RequestMapping("/api/shoe") public class ShoeController extends Object
  • Constructor Details

    • ShoeController

      public ShoeController()
  • Method Details

    • getAllShoe

      @GetMapping("/") public org.springframework.http.ResponseEntity<List<Shoe>> getAllShoe()
    • searchShoeById

      @GetMapping("/{id}") public org.springframework.http.ResponseEntity<Shoe> searchShoeById(@PathVariable int id)
    • createShoe

      @PostMapping("/") public org.springframework.http.ResponseEntity<Shoe> createShoe(@RequestBody Shoe shoe)
    • updateShoe

      @PutMapping("/{id}") public org.springframework.http.ResponseEntity<Shoe> updateShoe(@PathVariable int id, @RequestBody Shoe shoe) throws BusinessException
      Throws:
      BusinessException
    • deleteShoe

      @DeleteMapping("/{id}") public org.springframework.http.ResponseEntity<Void> deleteShoe(@PathVariable int id) throws BusinessException
      Throws:
      BusinessException