Class IpAddressRestController

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

@RestController public class IpAddressRestController extends Object
  • Constructor Details

    • IpAddressRestController

      public IpAddressRestController()
  • Method Details

    • loadAll

      @GetMapping("/inventory/rest/ip-addresses") public List<IpAddressDisplayDto> loadAll()
    • loadById

      @GetMapping("/inventory/rest/ip-addresses/{id}") public IpAddressDisplayDto loadById(@PathVariable long id)
    • create

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

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

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