atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vimal Sharma (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ATLAS-1396) [V2 API] GET v2/types/enumdef/guid/{guid} not working as expected
Date Tue, 10 Jan 2017 11:17:58 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-1396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vimal Sharma updated ATLAS-1396:
--------------------------------
    Attachment: ATLAS-1396.patch

> [V2 API] GET v2/types/enumdef/guid/{guid}  not working as expected
> ------------------------------------------------------------------
>
>                 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)

Mime
View raw message