Class InventoryItemRestController
java.lang.Object
org.xbricks.inventories.inventory.controllers.rest.InventoryItemRestController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<InventoryItemSaveDto>
create
(@Valid InventoryItemSaveDto dto, org.springframework.validation.BindingResult bindingResult) org.springframework.http.ResponseEntity<String>
delete
(long id) loadAll()
loadById
(long id) org.springframework.http.ResponseEntity<InventoryItemSaveDto>
update
(long id, @Valid InventoryItemSaveDto dto, org.springframework.validation.BindingResult bindingResult)
-
Constructor Details
-
InventoryItemRestController
public InventoryItemRestController()
-
-
Method Details
-
loadAll
-
loadById
@GetMapping("/inventory/rest/inventory-items/{id}") public InventoryItemDisplayDto loadById(@PathVariable long id) -
create
@PostMapping("/inventory/rest/inventory-items") public org.springframework.http.ResponseEntity<InventoryItemSaveDto> create(@Valid @RequestBody @Valid InventoryItemSaveDto dto, org.springframework.validation.BindingResult bindingResult) -
update
@PutMapping("/inventory/rest/inventory-items/{id}") public org.springframework.http.ResponseEntity<InventoryItemSaveDto> update(@PathVariable long id, @Valid @RequestBody @Valid InventoryItemSaveDto dto, org.springframework.validation.BindingResult bindingResult) -
delete
@DeleteMapping("/inventory/rest/inventory-items/{id}") public org.springframework.http.ResponseEntity<String> delete(@PathVariable long id)
-