@RestController @RequestMapping(value="/api/cluster/nodes") public class ClusterNodeController extends AbstractOhfController
Node
entity.Modifier and Type | Field and Description |
---|---|
static String |
REST_URI |
BASE_PATH
Constructor and Description |
---|
ClusterNodeController() |
Modifier and Type | Method and Description |
---|---|
void |
delete(Long id)
Deletes existing
NodeRpc . |
CollectionWrapper<NodeRpc> |
findAll()
Gets list of all cluster nodes.
|
NodeRpc |
getById(Long id)
Gets
NodeRpc by ID. |
void |
update(Long id,
NodeRpc nodeRpc,
org.springframework.validation.BindingResult errors)
Updates existing
NodeRpc . |
getMessage, getMessageEN, getMessageSource, pageContentList
public static final String REST_URI
@RequestMapping(method=GET, produces={"application/xml","application/json"}) @ResponseStatus(value=OK) @ResponseBody public CollectionWrapper<NodeRpc> findAll()
@RequestMapping(value="/{id}", method=GET, produces={"application/xml","application/json"}) @ResponseStatus(value=OK) @ResponseBody public NodeRpc getById(@PathVariable Long id) throws NoDataFoundException
NodeRpc
by ID.id
- The BaseRpc.getId()
NoDataFoundException
- if entity not found@RequestMapping(value="/{id}", method=PUT, produces={"application/xml","application/json"}) @ResponseStatus(value=NO_CONTENT) @ResponseBody public void update(@PathVariable Long id, @RequestBody NodeRpc nodeRpc, org.springframework.validation.BindingResult errors) throws ValidationException, NoDataFoundException
NodeRpc
.id
- as identifier of NodeRpc
nodeRpc
- The NodeRpc
ValidationException
- if input object has wrong valuesNoDataFoundException
- entity not found for updateCopyright © 2018 Pivotal Software, Inc.. All rights reserved.