Mayur Maheshwari created ATLAS-2960:
---------------------------------------

             Summary: Custom attribute inside an Attibute  Definition
                 Key: ATLAS-2960
                 URL: https://issues.apache.org/jira/browse/ATLAS-2960
             Project: Atlas
          Issue Type: Wish
          Components:  atlas-core
            Reporter: Mayur Maheshwari


How we can add custom attributes while creating a Type using Rest API:

{
    "enumTypes": [],
    "structTypes": [],
    "traitTypes": [],
    "classTypes": [{
        "superTypes": ["Process"],
        "hierarchicalMetaTypeName": 
"org.apache.atlas.typesystem.types.ClassType",
        "typeName": "ResearchPaperAccessDataset_Process",
        "typeDescription": null,
        "attributeDefinitions": [{
            "name": "resourceSetID",
            "dataTypeName": "int",
            "multiplicity": "required",
            "isComposite": false,
            "isUnique": false,
            "isIndexable": true,
            "reverseAttributeName": null,
            *"sources":[{*
                *"name":"hdfs",*
                *"originalName":"ID"*    
                *}*
            *]*
        },
        {
            "name": "researchPaperGroupName",
            "dataTypeName": "string",
            "multiplicity": "required",
            "isComposite": false,
            "isUnique": false,
            "isIndexable": true,
            "reverseAttributeName": null
        }]
    }]
} 

 

Wanted to add '*sources*' marked in bold while creating a type.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to