{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/1525","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/1525/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/1525/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/1525/events","html_url":"https://github.com/ManageIQ/manageiq/issues/1525","id":56082933,"number":1525,"title":"[api] \"id\" to always return object.id","user":{"login":"abellotti","id":5797328,"avatar_url":"https://avatars.githubusercontent.com/u/5797328?v=3","gravatar_id":"","url":"https://api.github.com/users/abellotti","html_url":"https://github.com/abellotti","followers_url":"https://api.github.com/users/abellotti/followers","following_url":"https://api.github.com/users/abellotti/following{/other_user}","gists_url":"https://api.github.com/users/abellotti/gists{/gist_id}","starred_url":"https://api.github.com/users/abellotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abellotti/subscriptions","organizations_url":"https://api.github.com/users/abellotti/orgs","repos_url":"https://api.github.com/users/abellotti/repos","events_url":"https://api.github.com/users/abellotti/events{/privacy}","received_events_url":"https://api.github.com/users/abellotti/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-30T20:49:21Z","updated_at":"2015-02-13T00:50:32Z","closed_at":"2015-02-13T00:50:32Z","body":"In the current 1.0 based API, when querying collection resources, id's are transformed into their href equivalent. i.e:\r\n\r\n```\r\n{\r\n  \"id” : “https://<appliance>/api/vms/4”,\r\n  . . .\r\n}\r\n```\r\n\r\nThere's been a couple requests to keep id's as is and insert the \"href\" as a separate attribute, i.e. returning the following instead:\r\n\r\n```\r\n{\r\n  “id” :  4,\r\n  “href” : “https://<appliance>/api/vms/4”,\r\n  . . .\r\n}\r\n```\r\n\r\nEliminating the need for Rest API clients to have to parse the id all the time.\r\n\r\nJust want to make sure this is Ok in general with everyone, will need to bump up versioning to 2.0.0 for this.\r\n"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/74185570","html_url":"https://github.com/ManageIQ/manageiq/issues/1525#issuecomment-74185570","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/1525","id":74185570,"user":{"login":"abellotti","id":5797328,"avatar_url":"https://avatars.githubusercontent.com/u/5797328?v=3","gravatar_id":"","url":"https://api.github.com/users/abellotti","html_url":"https://github.com/abellotti","followers_url":"https://api.github.com/users/abellotti/followers","following_url":"https://api.github.com/users/abellotti/following{/other_user}","gists_url":"https://api.github.com/users/abellotti/gists{/gist_id}","starred_url":"https://api.github.com/users/abellotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abellotti/subscriptions","organizations_url":"https://api.github.com/users/abellotti/orgs","repos_url":"https://api.github.com/users/abellotti/repos","events_url":"https://api.github.com/users/abellotti/events{/privacy}","received_events_url":"https://api.github.com/users/abellotti/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T00:50:32Z","updated_at":"2015-02-13T00:50:32Z","body":"Thanks @Fryguy, the PR is in progress  #1678  \r\n\r\nclosing this issue.\r\n"}}