You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Sharmadha Sainath (JIRA)" <ji...@apache.org> on 2017/04/24 07:06:04 UTC

[jira] [Commented] (ATLAS-1747) Difference in result of POSTing Structs to V1 APIs and V2 APIs

    [ https://issues.apache.org/jira/browse/ATLAS-1747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15980783#comment-15980783 ] 

Sharmadha Sainath commented on ATLAS-1747:
------------------------------------------

Struct definition POSTed to V1 APIs: 
/api/atlas/types
{code}
{
  "enumTypes":[

  ],
  "structTypes":[
    {
      "typeName":"struct_v1_2",
      "typeDescription":null,
      "typeVersion":"1.0",
      "attributeDefinitions":[ ]
    }
  ],
  "traitTypes":[

  ],
  "classTypes":[

  ]
}
{code}

Struct definition POSTed to V2 APIs :
/api/atlas/v2/types/typedefs
{code}
{
   "entityDefs":[

   ],
   "structDefs":[
      {
         "description":"new desc",
         "category":"STRUCT",
         "name":"type_struct_3",
         "updateTime":12345,
"guid":"bfoewbfoewfibjbjbdfdsfoef",
"typeVersion":"0.1",
"attributeDefs":[],
"createTime":12345
      }
   ],
   "classificationDefs":[

   ],
   "enumDefs":[

   ]
}
{code}

> Difference in result of POSTing Structs to V1 APIs and V2 APIs
> --------------------------------------------------------------
>
>                 Key: ATLAS-1747
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1747
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.8-incubating, 0.9-incubating
>            Reporter: Sharmadha Sainath
>         Attachments: struct_V1_API_400_Bad_Req.txt, struct_V2_API_200_OK.txt
>
>
> Created a struct without attribute definitions.
> 1. POSTing it to V1 APIs threw 400 Bad Request with exception 
> {code}
> Caused by: java.lang.IllegalArgumentException: Collection Attribute definitions is empty
> {code}
> 2. POSTing it to V2 APIs throws the above exception but struct is created successfully.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)