Class InventoryItemRestController

java.lang.Object
org.xbricks.inventories.inventory.controllers.rest.InventoryItemRestController

@RestController public class InventoryItemRestController extends Object
  • Constructor Details

    • InventoryItemRestController

      public InventoryItemRestController()
  • Method Details

    • loadAll

      @GetMapping("/inventory/rest/inventory-items") public List<InventoryItemDisplayDto> 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)