You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Vimal Sharma (JIRA)" <ji...@apache.org> on 2016/12/16 10:55:58 UTC

[jira] [Created] (ATLAS-1396) [V2 API] GET v2/types/enumdef/guid/{guid} not working as expected

Vimal Sharma created ATLAS-1396:
-----------------------------------

             Summary: [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
            Reporter: Vimal Sharma
            Assignee: Vimal Sharma


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)