Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-3949

Relationship search API, add parameter to get classification attributes in search results

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.2.0
    • atlas-intg
    • None

    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: 

      {
         "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
      }
      

      Attachments

        Issue Links

          Activity

            People

              pinal Pinal Shah
              pinal Pinal Shah
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: