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