@RestController
@RequestMapping(value="/open-metadata/access-services/asset-catalog/users/{userId}/relationships")
public class AssetCatalogRelationshipResource
extends Object
| Constructor and Description |
|---|
AssetCatalogRelationshipResource() |
| Modifier and Type | Method and Description |
|---|---|
org.odpi.openmetadata.accessservice.assetcatalog.responses.RelationshipResponse |
getRelationship(String userId,
String relationshipId)
Fetch relationship details based on its unique identifier
|
org.odpi.openmetadata.accessservice.assetcatalog.responses.RelationshipsResponse |
getRelationshipByLabel(String userId,
String propertyName,
String propertyValue,
String relationshipTypeId,
Integer limit,
Integer offset,
org.odpi.openmetadata.accessservice.assetcatalog.model.SequenceOrderType orderType,
String orderProperty,
org.odpi.openmetadata.accessservice.assetcatalog.model.Status status)
Fetch relationship details based on property name
|
org.odpi.openmetadata.accessservice.assetcatalog.responses.RelationshipsResponse |
searchForRelationships(String userId,
String relationshipTypeId,
String criteria,
Integer limit,
Integer offset,
org.odpi.openmetadata.accessservice.assetcatalog.model.SequenceOrderType orderType,
String orderProperty,
org.odpi.openmetadata.accessservice.assetcatalog.model.Status status)
Return a list of relationships that match the search criteria.
|
@RequestMapping(method=GET,
path="/{relationshipId}",
produces="application/json")
public org.odpi.openmetadata.accessservice.assetcatalog.responses.RelationshipResponse getRelationship(@PathVariable(value="userId")
String userId,
@PathVariable(value="relationshipId")
String relationshipId)
userId - String unique identifier for the userrelationshipId - String unique identifier for the relationship@RequestMapping(method=GET,
path="/property-name/{propertyName}",
produces="application/json")
public org.odpi.openmetadata.accessservice.assetcatalog.responses.RelationshipsResponse getRelationshipByLabel(@PathVariable(value="userId")
String userId,
@PathVariable(value="propertyName")
String propertyName,
@RequestParam(required=false,value="propertyValue")
String propertyValue,
@RequestParam(required=false,value="relationshipTypeId")
String relationshipTypeId,
@RequestParam(required=false,value="limit",defaultValue="0")
Integer limit,
@RequestParam(required=false,value="offset",defaultValue="0")
Integer offset,
@RequestParam(required=false,value="orderType")
org.odpi.openmetadata.accessservice.assetcatalog.model.SequenceOrderType orderType,
@RequestParam(required=false,value="orderProperty")
String orderProperty,
@RequestParam(required=false,value="status")
org.odpi.openmetadata.accessservice.assetcatalog.model.Status status)
userId - String unique identifier for the userpropertyName - String that it is used to identify the relationship labelpropertyValue - list of properties used to narrow the search.relationshipTypeId - limit the result to include the specific relationship typelimit - limit the result set to only include the specified number of entriesoffset - start offset of the result set (for pagination)orderType - enum defining how the results should be ordered.orderProperty - the name of the property that is to be used to sequence the resultsstatus - By default, relationships in all statuses are returned.
However, it is possible to specify a single status (eg ACTIVE) to restrict the results to.@RequestMapping(method=GET,
path="/type/{relationshipTypeId}/search/{criteria}",
produces="application/json")
public org.odpi.openmetadata.accessservice.assetcatalog.responses.RelationshipsResponse searchForRelationships(@PathVariable(value="userId")
String userId,
@PathVariable(value="relationshipTypeId")
String relationshipTypeId,
@PathVariable(value="criteria")
String criteria,
@RequestParam(required=false,value="limit",defaultValue="0")
Integer limit,
@RequestParam(required=false,value="offset",defaultValue="0")
Integer offset,
@RequestParam(required=false,value="orderType")
org.odpi.openmetadata.accessservice.assetcatalog.model.SequenceOrderType orderType,
@RequestParam(required=false,value="orderProperty")
String orderProperty,
@RequestParam(required=false,value="status")
org.odpi.openmetadata.accessservice.assetcatalog.model.Status status)
userId - String unique identifier for the userrelationshipTypeId - limit the result set to only include the specified types for relationshipscriteria - String for searching the relationshiplimit - limit the result set to only include the specified number of entriesoffset - start offset of the result set (for pagination)orderType - enum defining how the results should be ordered.orderProperty - the name of the property that is to be used to sequence the resultsstatus - By default, relationships in all statuses are returned.
However, it is possible to specify a single status (eg ACTIVE) to restrict the results to.Copyright © 2018 ODPi. All rights reserved.