Class HostRoleRestController

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

@RestController public class HostRoleRestController extends Object
  • Constructor Details

    • HostRoleRestController

      public HostRoleRestController()
  • Method Details

    • loadAll

      @GetMapping("/inventory/rest/host-roles") public List<HostRoleDisplayDto> 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)