You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Pinal (Jira)" <ji...@apache.org> on 2020/09/21 08:40:00 UTC
[jira] [Updated] (ATLAS-3949) Relationship search API, add
parameter to get classification attributes in search results
[ https://issues.apache.org/jira/browse/ATLAS-3949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pinal updated ATLAS-3949:
-------------------------
Description:
*Improvement:* Adding boolean parameter 'includeClassificationAttributes' in Relationship search Api to get all attributes of the classification associated to the entity.
*Example Request api:* /api/atlas/v2/search/relationship?guid=\{guid}&relation=tables&limit=10&includeClassificationAttributes=true
Example Response api:
{code:java}
{
"queryType":"RELATIONSHIP",
"entities":[
{
"typeName":"hive_table",
"attributes":{
"createTime":1600626600000,
"qualifiedName":"table@db1",
"name":"table1"
},
"guid":"9893504f-095d-47e3-abf8-fd79069252f7",
"status":"ACTIVE",
"displayText":"table1",
"classificationNames":[
"Dimension"
],
"classifications":[
{
"typeName":"Dimension",
"entityGuid":"9893504f-095d-47e3-abf8-fd79069252f7",
"entityStatus":"ACTIVE",
"propagate":true,
"validityPeriods":[
],
"removePropagationsOnEntityDelete":false
}
],
"meaningNames":[
],
"meanings":[
],
"isIncomplete":false,
"labels":[
]
}
],
"approximateCount":-1
}
{code}
> Relationship search API, add parameter to get classification attributes in search results
> -----------------------------------------------------------------------------------------
>
> Key: ATLAS-3949
> URL: https://issues.apache.org/jira/browse/ATLAS-3949
> Project: Atlas
> Issue Type: Improvement
> Components: atlas-intg
> Reporter: Pinal
> Assignee: Pinal
> Priority: Major
>
> *Improvement:* Adding boolean parameter 'includeClassificationAttributes' in Relationship search Api to get all attributes of the classification associated to the entity.
> *Example Request api:* /api/atlas/v2/search/relationship?guid=\{guid}&relation=tables&limit=10&includeClassificationAttributes=true
> Example Response api:
> {code:java}
> {
> "queryType":"RELATIONSHIP",
> "entities":[
> {
> "typeName":"hive_table",
> "attributes":{
> "createTime":1600626600000,
> "qualifiedName":"table@db1",
> "name":"table1"
> },
> "guid":"9893504f-095d-47e3-abf8-fd79069252f7",
> "status":"ACTIVE",
> "displayText":"table1",
> "classificationNames":[
> "Dimension"
> ],
> "classifications":[
> {
> "typeName":"Dimension",
> "entityGuid":"9893504f-095d-47e3-abf8-fd79069252f7",
> "entityStatus":"ACTIVE",
> "propagate":true,
> "validityPeriods":[
>
> ],
> "removePropagationsOnEntityDelete":false
> }
> ],
> "meaningNames":[
>
> ],
> "meanings":[
>
> ],
> "isIncomplete":false,
> "labels":[
>
> ]
> }
> ],
> "approximateCount":-1
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)