{"action":"opened","issue":{"url":"https://api.github.com/repos/fossasia/open-event-server/issues/4726","repository_url":"https://api.github.com/repos/fossasia/open-event-server","labels_url":"https://api.github.com/repos/fossasia/open-event-server/issues/4726/labels{/name}","comments_url":"https://api.github.com/repos/fossasia/open-event-server/issues/4726/comments","events_url":"https://api.github.com/repos/fossasia/open-event-server/issues/4726/events","html_url":"https://github.com/fossasia/open-event-server/issues/4726","id":322757705,"number":4726,"title":"Add action detail in notifications of notifications API","user":{"login":"CosmicCoder96","id":17252805,"avatar_url":"https://avatars0.githubusercontent.com/u/17252805?v=4","gravatar_id":"","url":"https://api.github.com/users/CosmicCoder96","html_url":"https://github.com/CosmicCoder96","followers_url":"https://api.github.com/users/CosmicCoder96/followers","following_url":"https://api.github.com/users/CosmicCoder96/following{/other_user}","gists_url":"https://api.github.com/users/CosmicCoder96/gists{/gist_id}","starred_url":"https://api.github.com/users/CosmicCoder96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CosmicCoder96/subscriptions","organizations_url":"https://api.github.com/users/CosmicCoder96/orgs","repos_url":"https://api.github.com/users/CosmicCoder96/repos","events_url":"https://api.github.com/users/CosmicCoder96/events{/privacy}","received_events_url":"https://api.github.com/users/CosmicCoder96/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-14T10:26:07Z","updated_at":"2018-05-14T10:26:07Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**I'm submitting a ...**  (check one with \"x\")\r\n- [ ] bug report\r\n- [x] feature request\r\n- [ ] support request => Please do not submit support requests here, instead ask your query in out Gitter channel at https://gitter.im/fossasia/open-event-server\r\n\r\n**Current behavior:**\r\n<!-- Describe how the bug manifests. -->\r\nCurrently following attributes/response are returned by the notifications api for a given notification\r\n```js\r\n\"attributes\": {\r\n      \"message\": \"example\",\r\n      \"received-at\": \"2017-06-23T04:40:37.239724+00:00\",\r\n      \"is-read\": false,\r\n      \"title\": \"example\"\r\n    },\r\n```\r\n**Expected behavior:**\r\n<!-- Describe what the behavior would be without the bug. -->\r\nIdeal response should be \r\n```js\r\n{\r\n  title: 'Export of session ...',\r\n  state: 'error',\r\n  message: 'The following error occurred ...',\r\n  primaryAction: {\r\n\taction: 'view',\r\n    type: 'session',\r\n \tid: 12344\r\n  },\r\n  receivedAt: '2018-05-14T04:58:06Z'\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"CosmicCoder96"}}