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