Class ResponsiblePersonRestController
java.lang.Object
org.xbricks.inventories.inventory.controllers.rest.ResponsiblePersonRestController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ResponsiblePersonSaveDto>
create
(@Valid ResponsiblePersonSaveDto dto, org.springframework.validation.BindingResult bindingResult) org.springframework.http.ResponseEntity<String>
delete
(long id) loadAll()
loadById
(long id) org.springframework.http.ResponseEntity<ResponsiblePersonSaveDto>
update
(long id, @Valid ResponsiblePersonSaveDto dto, org.springframework.validation.BindingResult bindingResult)
-
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)
-