Class ChairsController
java.lang.Object
info.ejava.examples.svc.aop.items.controllers.ChairsController
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<ItemDTO> createItem
(ChairDTO item) org.springframework.http.ResponseEntity
<Void> deleteItem
(int id) org.springframework.http.ResponseEntity
<Void> org.springframework.http.ResponseEntity
<ItemDTO> getItem
(int id) org.springframework.http.ResponseEntity
<ItemDTO> updateItem
(int id, ChairDTO item)
-
Field Details
-
chairsService
-
-
Constructor Details
-
ChairsController
public ChairsController()
-
-
Method Details
-
createItem
-
updateItem
-
getItem
@GetMapping(path="{itemId}", produces="application/json") public org.springframework.http.ResponseEntity<ItemDTO> getItem(@PathVariable("itemId") int id) -
deleteItem
@DeleteMapping(path="{itemId}") public org.springframework.http.ResponseEntity<Void> deleteItem(@PathVariable("itemId") int id) -
deleteItems
-