Package com.malay.shortyshoe.controller
Class ShoeController
java.lang.Object
com.malay.shortyshoe.controller.ShoeController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Shoe>
createShoe
(Shoe shoe) org.springframework.http.ResponseEntity<Void>
deleteShoe
(int id) org.springframework.http.ResponseEntity<Shoe>
searchShoeById
(int id) org.springframework.http.ResponseEntity<Shoe>
updateShoe
(int id, Shoe shoe)
-
Constructor Details
-
ShoeController
public ShoeController()
-
-
Method Details
-
getAllShoe
-
searchShoeById
@GetMapping("/{id}") public org.springframework.http.ResponseEntity<Shoe> searchShoeById(@PathVariable int id) -
createShoe
-
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
-