Enterprise Data Catalog REST API Reference > Object APIs > Object Information APIs
  

Object Information APIs

You can use the following Object Information REST APIs for the objects in the catalog:
Model Information REST API
Description
GET data/objects
Lists the objects
GET data/objects/{id}
Lists the object details
GET data/relationships
Lists the relationships between the objects
GET catalog/data/search
Lists the search results
GET catalog/data/suggest
Lists the suggestions

Data Objects

objects
The endpoint object returns the objects in the catalog. An endpoint is an object that has a connection to another object in a different resource.
REST API Element
Input Format
Request URL
<CatalogAdmin>:<port>/access/2/catalog/data/objects
HTTP Method Type
GET

Request Parameters

Parameter
Required or Optional
Description
Parameter Type
Data Type
q
Optional
Use to create a query that searches matching objects. Uses Apache Lucene to interpret the query.
Query
String
fq
Optional
Enter one or more filter queries that you can apply to search query.
Query
Arrary [String]
id
Optional
Enter one or more data object IDs.
Query
Arrary [String]
offset
Optional
The starting point in the results. The results after the offset value is displayed. By default, the offset value is 0.
Query
Integer
pageSize
Optional
The number of results to display in a page.
Default is 20 results per page.
Query
Integer
sort
Optional
Enter core.name_sort asc to sort the results in ascending order. Enter core.name_sort desc to sort the results in descending order.
Query
String
relatedId
Optional
Enter one or more object IDs to display the results of related IDs.
Query
Arrary [String]
cursor
Optional
Enter query for faster paginated results for deep paging. This parameter is an alternative to offset parameter.
Query
String
associations
Optional
The list of association types to include in the response.
By default, the links of all types are included in the parameter.
Query
Arrary [String]
includeSrcLinks
Optional
Select true if you want to include source links.
Query
Boolean
includeDstLinks
Optional
Select true if you want to include destination links.
Query
Boolean
shards
Optional
The list of search shards to query. By default all shards are queried.
Query
Arrary [String]
includeRefObjects
Optional
Include reference objects in the object details. Default is false.
Query
Boolean

Response Codes

Code
Reason
200
Returns objects and object details.
400
Missing or invalid parameter.
401
Missing credentials.
403
User does not have the required access permissions.
404
Requested object not found.
429
Rate limit for requests encountered.

Sample Call Using Curl

curl -X GET --header "Accept: application/json" "http://<CatalogAdmin>:<port>/access/2/catalog/data/objects?q=*"

Data Object IDs

objects/{id}
API returns the details about an object.
REST API Element
Input Format
Request URL
<CatalogAdmin>:<port>/access/2/catalog/data/objects/{id}
HTTP Method Type
GET

Request Parameters

Parameter
Required or Optional
Description
Parameter Type
Data Type
id
Required
The ID of the data object.
Path
String
includeRefObjects
Optional
Include reference objects in the object details. Default is false.
Query
Boolean

Response Codes

Code
Reason
200
Returns the object and object details.
400
Missing or invalid parameter.
401
Missing credentials.
403
User does not have the required access permissions.
404
Requested object not found.
429
Rate limit for requests encountered.

Sample Call Using Curl

curl -X GET --header "Accept: application/json" "http://<CatalogAdmin>:<port>/access/2/catalog/data/objects/3371000366"

Relationships

relationships
The endpoint object returns the relationship between an object and other objects in Enterprise Data Catalog. An endpoint is an object that has a connection to another object in a different resource.
REST API Element
Input Format
Request URL
<CatalogAdmin>:<port>/access/2/catalog/data/relationships
HTTP Method Type
GET

Request Parameters

Parameter
Required or Optional
Description
Parameter Type
Data Type
seed
Required
Enter one or more data asset IDs.
Query
Arrary [String]
association
Required
Enter one or more association IDs or association kind IDs. Lineage or association displays where the data for an asset comes from and the assets that impact it. You can enter the association ID or association kind ID.
Query
Arrary [String]
depth
Required
The depth of traversal which is the number of return links in the lineage. Enter one of the following Enter 0 or N as the depth of traversal, where N is an integer. Enter 0 to display complete lineage. Enter a number N to display the lineage for N hops from the seed node.
Query
Integer
direction
Optional
Direction to traverse for lineage.
Enter one of the following parameters:
  • - BOTH
  • - IN
  • - OUT
Default is BOTH.
Query
String
removeDuplicateAggregateLinks
Optional
Select true if you do not want the duplicate aggregate links to appear in the response.
Default is true.
Sometimes, the scanners create duplicate aggregate links.
Query
Boolean
includeTerms
Optional
Select true if the connected business terms are to be embedded in the response.
Default is false.
Query
Boolean
includeAttribute
Optional
Enter one or more attribute IDs that you want to embed in the response.
Query
Array [String]
includeRefObjects
Optional
Include reference objects in the object relationships details. Default is false.
Query
Boolean
edgeQuery
Optional
Enter edges to filter the relationships.
Query
Array [String]

Response Codes

Code
Reason
200
Listed relationships.
400
Missing or invalid parameter.
401
Missing credentials.
403
User does not have the required access permissions.
404
Requested object not found.
429
Rate limit for requests encountered.

Sample Call Using Curl

curl -X GET --header "Accept: application/json" "http://<CatalogAdmin>:<port>/access/2/catalog/data/relationships?seed=<seedValue>&association=<AssociationValue>&depth=<depthValue>&direction=<Direction>&removeDuplicateAggregateLinks=<true/false>&includeTerms=<true/false>"

List the Catalog Search Results

/data/search
API returns the catalog search results.
REST API Element
Input Format
Request URL
<CatalogAdmin>:<port>/access/2/catalog/data/search
HTTP Method Type
GET

Request Parameters

Parameter
Required or Optional
Description
Parameter Type
Data Type
q
Optional
Use to create a query that searches matching objects. Uses Apache Lucene to interpret the query.
Query
String
basicQuery
Optional
A query string. Uses blockjoin faceting to interpret the query. See Apache Lucene for more information.
Query
String
fq
Optional
Filter queries to apply on the q parameter. Useful to apply facets.
Query
Array [String]
facet
Optional
Select true to return facets for the query.
Query
Boolean
defaultFacets
Optional
Select true to return facets for the query.
Query
Boolean
facetId
Optional
Enter one or more facets to include in the query if the facet parameter is true.
Query
Array [String]
queryFacetJson
Optional
Enter one or more query facets in JSON format to create an on-the-fly facet when the facet parameter is true.
Query
Array [String]
fieldFacetJson
Optional
Enter one or more field facets in JSON format to create an on-the-fly facet when the facet parameter is true.
Query
Array [String]
sliderFacetJson
Optional
Enter one or more slider facets in JSON format to create an on-the-fly facet when the facet parameter is true.
Query
Array [String]
rootTo
Optional
Join results to resource or data set.
Choose one of the following parameters:
  • - RESOURCE
  • - DATA_SET
Query
String
relatedId
Optional
Specifies the object ID for which the related assets appear.
Query
Array [String]
highlight
Optional
Select true to highlight the tokens in different properties of an asset.
Query
Boolean
offset
Optional
The starting point in the results. The results after the offset value is displayed.
Default is 0.
Query
Integer
pageSize
Optional
The number of results to display in a page.
Default is 20 results per page.
Query
Integer
sort
Optional
The filter to sort results.
Choose one of the following parameters:
  • - relevance(score)
  • - core.name_sort asc
  • - core.name_sort desc
Default is relevance(score).
Query
String
cursor
Optional
As an alternative to offset, this parameter can provide faster paginated results when Enterprise Data Catalog performs deep paging.
Query
String
shards
Optional
The list of search shards to query.
Default is queries all the shards.
Query
Array [String]
tabId
Optional
The tab ID to apply the filters.
Query
String
fl
Optional
Specifies the fields to include in the query response.
Query
Array [String]
qf
Optional
Specifies the fields in the index to use in query. Enter index attributes that have index="true" in the view model.
Query
Array [String]
enableLegacySearch
Optional
Search in legacy fields. Default is false.
Query
Boolean
disableSemanticSearch
Optional
Semantic search or auto filter objects in search. Default is false.
Query
Boolean
includeRefObjects
Optional
Include reference objects in search. Default is false.
Query
Boolean

Response Codes

Code
Reason
200
Returns the search results.
400
Missing or invalid parameter.
401
Missing credentials.
403
User does not have the required access permissions.
404
Requested object not found.
429
Rate limit for requests encountered.

Sample Call Using Curl

curl -X GET --header "Accept: application/json" "http://<CatalogAdmin>:<port>/access/2/catalog/data/search?basicQuery=CUSTOMERTIER&facet=false&defaultFacets=true&highlight=true&offset=0&pageSize=20" -H "accept: application/json"

List the Suggestions

/data/suggest
List the suggestions.
REST API Element
Input Format
Request URL
<CatalogAdmin>:<port>/access/2/catalog//data/suggest
HTTP Method Type
GET

Request Parameters

Parameter
Required or Optional
Description
Parameter Type
Data Type
basicQuery
Required
The query string. All characters are treated as literals except the * character, which represents a wildcard
Query
String
pageSize
Optional
The number of results to display in a page.
Default is 20 results per page.
Query
Integer

Response Codes

Code
Reason
200
Returns suggestions.
400
Missing or invalid parameter.
401
Missing credentials.
403
User does not have the required access permissions.
404
Requested object not found.
429
Rate limit for requests encountered.

Sample Call Using Curl

curl -X GET --header "Accept: application/json" "http://<CatalogAdmin>:<port>/access/2/catalog/data/suggest?basicQuery=Customer&pageSize=20" -H "accept: application/json"