Class OwnerRestController

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

@RestController public class OwnerRestController extends Object
  • Constructor Details

    • OwnerRestController

      public OwnerRestController()
  • Method Details

    • loadAll

      @GetMapping("/inventory/rest/owners") public List<OwnerDisplayDto> loadAll()
    • loadById

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

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

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

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