Class ResponsiblePersonRestController

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

@RestController public class ResponsiblePersonRestController extends Object
  • Constructor Details

    • ResponsiblePersonRestController

      public ResponsiblePersonRestController()
  • Method Details

    • loadAll

      @GetMapping("/inventory/rest/responsible-persons") public List<ResponsiblePersonDisplayDto> loadAll()
    • loadById

      @GetMapping("/inventory/rest/responsible-persons/{id}") public ResponsiblePersonDisplayDto loadById(@PathVariable long id)
    • create

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

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

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