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