{"action":"created","issue":{"url":"https://api.github.com/repos/hawkular/hawkular-alerts/issues/22","labels_url":"https://api.github.com/repos/hawkular/hawkular-alerts/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/hawkular/hawkular-alerts/issues/22/comments","events_url":"https://api.github.com/repos/hawkular/hawkular-alerts/issues/22/events","html_url":"https://github.com/hawkular/hawkular-alerts/pull/22","id":60488157,"number":22,"title":"Add Json anotations into API model","user":{"login":"lucasponce","id":1662329,"avatar_url":"https://avatars.githubusercontent.com/u/1662329?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasponce","html_url":"https://github.com/lucasponce","followers_url":"https://api.github.com/users/lucasponce/followers","following_url":"https://api.github.com/users/lucasponce/following{/other_user}","gists_url":"https://api.github.com/users/lucasponce/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasponce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasponce/subscriptions","organizations_url":"https://api.github.com/users/lucasponce/orgs","repos_url":"https://api.github.com/users/lucasponce/repos","events_url":"https://api.github.com/users/lucasponce/events{/privacy}","received_events_url":"https://api.github.com/users/lucasponce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-10T11:54:22Z","updated_at":"2015-03-10T12:56:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hawkular/hawkular-alerts/pulls/22","html_url":"https://github.com/hawkular/hawkular-alerts/pull/22","diff_url":"https://github.com/hawkular/hawkular-alerts/pull/22.diff","patch_url":"https://github.com/hawkular/hawkular-alerts/pull/22.patch"},"body":"As a previous step to review REST end points, I have added Json annotations into the API model.\r\nThis can also help in the documentation between interaction from Java vs JSON model.\r\nSo, with this approach we can avoid to maintain a parallel model inside the engine.\r\nREST endpoints are not yet reviewed, those will come in future commits."},"comment":{"url":"https://api.github.com/repos/hawkular/hawkular-alerts/issues/comments/78047307","html_url":"https://github.com/hawkular/hawkular-alerts/pull/22#issuecomment-78047307","issue_url":"https://api.github.com/repos/hawkular/hawkular-alerts/issues/22","id":78047307,"user":{"login":"lucasponce","id":1662329,"avatar_url":"https://avatars.githubusercontent.com/u/1662329?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasponce","html_url":"https://github.com/lucasponce","followers_url":"https://api.github.com/users/lucasponce/followers","following_url":"https://api.github.com/users/lucasponce/following{/other_user}","gists_url":"https://api.github.com/users/lucasponce/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasponce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasponce/subscriptions","organizations_url":"https://api.github.com/users/lucasponce/orgs","repos_url":"https://api.github.com/users/lucasponce/repos","events_url":"https://api.github.com/users/lucasponce/events{/privacy}","received_events_url":"https://api.github.com/users/lucasponce/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T12:56:22Z","updated_at":"2015-03-10T12:56:22Z","body":"True.\n\nI've took hawkular-metrics as an example:\n\nhttps://github.com/hawkular/hawkular-metrics/blob/master/api/metrics-api-jaxrs/src/main/java/org/hawkular/metrics/api/jaxrs/BucketedOutput.java#L24\n\n\n\nOn Tue, Mar 10, 2015 at 1:54 PM, John Mazzitelli <notifications@github.com>\nwrote:\n\n> Does everyone use Jackson annotations? Or RESTEasy? I'm not sure - we\n> should probably make sure everyone is consistent in using the same\n> annotations.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/hawkular/hawkular-alerts/pull/22#issuecomment-78047073>\n> .\n>\n"}}