public class RexViewRESTServices extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static RexViewInstanceHandler |
instanceHandler |
| Constructor and Description |
|---|
RexViewRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
RexSearchResponse |
findEntities(String serverName,
String userId,
RexSearchBody requestBody)
Find entities using searchText
|
RexSearchResponse |
findRelationships(String serverName,
String userId,
RexSearchBody requestBody)
Find relationships using searchText
|
RexEntityDetailResponse |
getEntity(String serverName,
String userId,
RexEntityRequestBody requestBody)
Get entity by GUID
|
RexRelationshipResponse |
getRelationship(String serverName,
String userId,
RexRelationshipRequestBody requestBody)
Get relationship by GUID
|
RexResourceEndpointListResponse |
getResourceEndpointList(String serverName,
String userId)
Retrieve platform origin
|
TypeExplorerResponse |
getTypeExplorer(String serverName,
String userId,
RexTypesRequestBody requestBody)
Load types
|
RexPreTraversalResponse |
preTraversal(String serverName,
String userId,
RexTraversalRequestBody requestBody)
This method retrieves the neighborhood around a starting entity for pre=traversal
|
RexTraversalResponse |
traversal(String serverName,
String userId,
RexTraversalRequestBody requestBody)
This method retrieves the neighborhood around a starting entity.
|
protected static final RexViewInstanceHandler instanceHandler
public RexResourceEndpointListResponse getResourceEndpointList(String serverName, String userId)
serverName - name of the local view server.userId - userId under which the request is performedpublic TypeExplorerResponse getTypeExplorer(String serverName, String userId, RexTypesRequestBody requestBody)
serverName - name of the local view server.userId - userId under which the request is performedrequestBody - request bodypublic RexEntityDetailResponse getEntity(String serverName, String userId, RexEntityRequestBody requestBody)
serverName - name of the local view server.userId - userId under which the request is performedrequestBody - request bodypublic RexRelationshipResponse getRelationship(String serverName, String userId, RexRelationshipRequestBody requestBody)
serverName - name of the local view server.userId - userId under which the request is performedrequestBody - request bodypublic RexSearchResponse findEntities(String serverName, String userId, RexSearchBody requestBody)
serverName - name of the local view server.userId - userId under which the request is performedrequestBody - request bodypublic RexSearchResponse findRelationships(String serverName, String userId, RexSearchBody requestBody)
serverName - name of the local view server.userId - userId under which the request is performedrequestBody - request bodypublic RexPreTraversalResponse preTraversal(String serverName, String userId, RexTraversalRequestBody requestBody)
When exploring an entity neighborhood we return an InstanceGraph which contains te entities and relationships that were traversed.
The method used is POST because the parameters supplied by the UI to the VS are conveyed in the request body.
serverName - name of the server running the view-service.userId - user account under which to conduct operation.requestBody - request body containing parameters to formulate repository requestpublic RexTraversalResponse traversal(String serverName, String userId, RexTraversalRequestBody requestBody)
When exploring an entity neighborhood we return an InstanceGraph which contains te entities and relationships that were traversed.
The method used is POST because the parameters supplied by the UI to the VS are conveyed in the request body.
serverName - name of the server running the view-service.userId - user account under which to conduct operation.requestBody - request body containing parameters to formulate repository requestCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.