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