Class NetworkPrefixRestController

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

@RestController public class NetworkPrefixRestController extends Object
  • Constructor Details

    • NetworkPrefixRestController

      public NetworkPrefixRestController()
  • Method Details

    • loadAll

      @GetMapping("/inventory/rest/network-prefixes") public List<NetworkPrefixDisplayDto> loadAll()
    • loadById

      @GetMapping("/inventory/rest/network-prefixes/{id}") public NetworkPrefixDisplayDto loadById(@PathVariable long id)
    • create

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

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

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