[
https://issues.apache.org/jira/browse/ATLAS-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17285854#comment-17285854
]
Nixon Rodrigues edited comment on ATLAS-4162 at 2/17/21, 2:52 PM:
------------------------------------------------------------------
[~kirill]
Please set relationshipType and end1 and end2 type name correctly as specified
in relationshipDef.
Here is an example of REST API call to create relationship between 2 entities:
POST api/atlas/v2/relationship
{noformat}
{
"typeName": "<relationshipType>",
"end1": {
"guid": "<guid of entity at end1>"
},
"end2": {
"guid": "<guid of entity at end2>"
}
}
{noformat}
All other fields are optional.
was (Author: nixonrodrigues):
[~kirill]
Here is an example of REST API call to create relationship between 2 entities:
POST api/atlas/v2/relationship
{noformat}
{
"typeName": "<relationshipType>",
"end1": {
"guid": "<guid of entity at end1>"
},
"end2": {
"guid": "<guid of entity at end2>"
}
}
{noformat}
All other fields are optional.
> invalid value: unknown relationship type
> ----------------------------------------
>
> Key: ATLAS-4162
> URL: https://issues.apache.org/jira/browse/ATLAS-4162
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: 3.0.0
> Reporter: kirill
> Priority: Major
>
> {"Description":"Metadata Management and Data Governance Platform over
> Hadoop","Revision":"21b15842fd74bc91910b2d8901dbea57769065d0","Version":"3.0.0-SNAPSHOT","Name":"apache-atlas"}
>
>
>
> 'http://localhost:21000/api/atlas/v2/relationship' -d '
> {
> "typeName": "Table",
> "end1": {
> "typeName": "Table",
> "uniqueAttributes": {
> "qualifiedName": "Table1"
> }
> },
> "end2": {
> "typeName": "Table",
> "uniqueAttributes": {
> "qualifiedName": "Table2"
> }
> }
> }
> '
>
> "invalid value: unknown relationship type'
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)