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

[jira] [Commented] (ATLAS-1396) [V2 API] GET v2/types/{type}/guid/{guid} not working

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

Madhan Neethiraj commented on ATLAS-1396:
-----------------------------------------

fix looks good. Thanks [~svimal2106].

+1

> [V2 API] GET v2/types/{type}/guid/{guid} not working
> ----------------------------------------------------
>
>                 Key: ATLAS-1396
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1396
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.8-incubating
>            Reporter: Vimal Sharma
>            Assignee: Vimal Sharma
>             Fix For: 0.8-incubating
>
>         Attachments: ATLAS-1396.patch
>
>
> POST  v2/types/enumdef
> {
> 	"name" : "creation_order1",
> 	"typeVersion" : "1.1",
> 	"elementDefs" : [
> 		{
> 			"ordinal" : 1,
> 			"value" : "PRE"
> 		},
> 		{
> 			"ordinal" : 2,
> 			"value" : "POST"
> 		},
> 		{
> 			"ordinal" : 3,
> 			"value" : "UNKNOWN"
> 		}
> 		]
> }
> returns the response
> {
>   "category": "ENUM",
>   "guid": "c5642d55-9f8e-45b1-b4a9-709c97b46233",
>   "createTime": 1481885315377,
>   "updateTime": 1481885315377,
>   "version": 1,
>   "name": "creation_order1",
>   "description": "creation_order1",
>   "typeVersion": "1.1",
>   "elementDefs": [
>     {
>       "value": "PRE",
>       "ordinal": 1
>     },
>     {
>       "value": "POST",
>       "ordinal": 2
>     },
>     {
>       "value": "UNKNOWN",
>       "ordinal": 3
>     }
>   ]
> }
> But GET v2/types/enumdef/guid/c5642d55-9f8e-45b1-b4a9-709c97b46233 returns
> {
>   "errorCode": "ATLAS4042E",
>   "errorMessage": "Given type guid c5642d55-9f8e-45b1-b4a9-709c97b46233 was invalid"
> }
> GET v2/types/enumdef/name/creation_order1  returns
> {
>   "category": "ENUM",
>   "guid": "c5642d55-9f8e-45b1-b4a9-709c97b46233",
>   "createTime": 1481885315377,
>   "updateTime": 1481885315377,
>   "version": 1,
>   "name": "creation_order1",
>   "typeVersion": "1.1",
>   "elementDefs": [
>     {
>       "value": "PRE",
>       "ordinal": 1
>     },
>     {
>       "value": "POST",
>       "ordinal": 2
>     },
>     {
>       "value": "UNKNOWN",
>       "ordinal": 3
>     }
>   ]
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)