Class HostRoleRestController
java.lang.Object
org.xbricks.inventories.inventory.controllers.rest.HostRoleRestController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<HostRoleSaveDto>
create
(@Valid HostRoleSaveDto dto, org.springframework.validation.BindingResult bindingResult) org.springframework.http.ResponseEntity<String>
delete
(long id) loadAll()
loadById
(long id) org.springframework.http.ResponseEntity<HostRoleSaveDto>
update
(long id, @Valid HostRoleSaveDto dto, org.springframework.validation.BindingResult bindingResult)
-
Constructor Details
-
HostRoleRestController
public HostRoleRestController()
-
-
Method Details
-
loadAll
-
loadById
@GetMapping("/inventory/rest/host-roles/{id}") public HostRoleDisplayDto loadById(@PathVariable long id) -
create
@PostMapping("/inventory/rest/host-roles") public org.springframework.http.ResponseEntity<HostRoleSaveDto> create(@Valid @RequestBody @Valid HostRoleSaveDto dto, org.springframework.validation.BindingResult bindingResult) -
update
@PutMapping("/inventory/rest/host-roles/{id}") public org.springframework.http.ResponseEntity<HostRoleSaveDto> update(@PathVariable long id, @Valid @RequestBody @Valid HostRoleSaveDto dto, org.springframework.validation.BindingResult bindingResult) -
delete
@DeleteMapping("/inventory/rest/host-roles/{id}") public org.springframework.http.ResponseEntity<String> delete(@PathVariable long id)
-