Class DepotRestController

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

@RestController public class DepotRestController extends Object
  • Constructor Details

    • DepotRestController

      public DepotRestController()
  • Method Details

    • loadAll

      @GetMapping("/inventory/rest/depots") public List<DepotDisplayDto> loadAll()
    • loadById

      @GetMapping("/inventory/rest/depots/{id}") public DepotDisplayDto loadById(@PathVariable long id)
    • create

      @PostMapping("/inventory/rest/depots") public org.springframework.http.ResponseEntity<DepotSaveDto> create(@Valid @RequestBody @Valid DepotSaveDto dto, org.springframework.validation.BindingResult bindingResult)
    • update

      @PutMapping("/inventory/rest/depots/{id}") public org.springframework.http.ResponseEntity<DepotSaveDto> update(@PathVariable long id, @Valid @RequestBody @Valid DepotSaveDto dto, org.springframework.validation.BindingResult bindingResult)
    • delete

      @DeleteMapping("/inventory/rest/depots/{id}") public org.springframework.http.ResponseEntity<String> delete(@PathVariable long id)