{"action":"created","issue":{"url":"https://api.github.com/repos/DefectDojo/django-DefectDojo/issues/682","repository_url":"https://api.github.com/repos/DefectDojo/django-DefectDojo","labels_url":"https://api.github.com/repos/DefectDojo/django-DefectDojo/issues/682/labels{/name}","comments_url":"https://api.github.com/repos/DefectDojo/django-DefectDojo/issues/682/comments","events_url":"https://api.github.com/repos/DefectDojo/django-DefectDojo/issues/682/events","html_url":"https://github.com/DefectDojo/django-DefectDojo/issues/682","id":348307732,"node_id":"MDU6SXNzdWUzNDgzMDc3MzI=","number":682,"title":"APIv2: Inconsistent identifiers for objects","user":{"login":"Nilix007","id":1176393,"node_id":"MDQ6VXNlcjExNzYzOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1176393?v=4","gravatar_id":"","url":"https://api.github.com/users/Nilix007","html_url":"https://github.com/Nilix007","followers_url":"https://api.github.com/users/Nilix007/followers","following_url":"https://api.github.com/users/Nilix007/following{/other_user}","gists_url":"https://api.github.com/users/Nilix007/gists{/gist_id}","starred_url":"https://api.github.com/users/Nilix007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nilix007/subscriptions","organizations_url":"https://api.github.com/users/Nilix007/orgs","repos_url":"https://api.github.com/users/Nilix007/repos","events_url":"https://api.github.com/users/Nilix007/events{/privacy}","received_events_url":"https://api.github.com/users/Nilix007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-07T12:52:50Z","updated_at":"2018-08-08T14:50:51Z","closed_at":null,"author_association":"NONE","body":"### Issue Type \r\n- [ ] Bug\r\n- [x] Enhancement\r\n\r\n### Description\r\n\r\nMost of the objects are identified by their URL in the APIv2, f.e. the `Product` object with the `id=1` is identified by`http://myserver/api/v2/products/1/`.  However, there are also some objects which are identified by their ID or a name field, like `Report_Type` and `Notes`.\r\n\r\nThis inconsistency makes the APIv2 harder to use and should be resolved -- probably by adding the missing endpoints so that all objects can be identified by URLs.\r\n\r\n(Also, I am not really sold on the URLs as identifier because I don't see any benefit compared to directly using the object IDs.)"},"comment":{"url":"https://api.github.com/repos/DefectDojo/django-DefectDojo/issues/comments/411433778","html_url":"https://github.com/DefectDojo/django-DefectDojo/issues/682#issuecomment-411433778","issue_url":"https://api.github.com/repos/DefectDojo/django-DefectDojo/issues/682","id":411433778,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTQzMzc3OA==","user":{"login":"Nilix007","id":1176393,"node_id":"MDQ6VXNlcjExNzYzOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1176393?v=4","gravatar_id":"","url":"https://api.github.com/users/Nilix007","html_url":"https://github.com/Nilix007","followers_url":"https://api.github.com/users/Nilix007/followers","following_url":"https://api.github.com/users/Nilix007/following{/other_user}","gists_url":"https://api.github.com/users/Nilix007/gists{/gist_id}","starred_url":"https://api.github.com/users/Nilix007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nilix007/subscriptions","organizations_url":"https://api.github.com/users/Nilix007/orgs","repos_url":"https://api.github.com/users/Nilix007/repos","events_url":"https://api.github.com/users/Nilix007/events{/privacy}","received_events_url":"https://api.github.com/users/Nilix007/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T14:50:51Z","updated_at":"2018-08-08T14:50:51Z","author_association":"NONE","body":"Alright, I opened a PR at #694 with proposed changes 👍 "}}
{"actor":{"display_login":"Nilix007"}}