{"action":"created","issue":{"url":"https://api.github.com/repos/olimart/kanban/issues/19","labels_url":"https://api.github.com/repos/olimart/kanban/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/olimart/kanban/issues/19/comments","events_url":"https://api.github.com/repos/olimart/kanban/issues/19/events","html_url":"https://github.com/olimart/kanban/issues/19","id":117935310,"number":19,"title":"Comments","user":{"login":"olimart","id":547754,"avatar_url":"https://avatars.githubusercontent.com/u/547754?v=3","gravatar_id":"","url":"https://api.github.com/users/olimart","html_url":"https://github.com/olimart","followers_url":"https://api.github.com/users/olimart/followers","following_url":"https://api.github.com/users/olimart/following{/other_user}","gists_url":"https://api.github.com/users/olimart/gists{/gist_id}","starred_url":"https://api.github.com/users/olimart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olimart/subscriptions","organizations_url":"https://api.github.com/users/olimart/orgs","repos_url":"https://api.github.com/users/olimart/repos","events_url":"https://api.github.com/users/olimart/events{/privacy}","received_events_url":"https://api.github.com/users/olimart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kyrsquir","id":10961196,"avatar_url":"https://avatars.githubusercontent.com/u/10961196?v=3","gravatar_id":"","url":"https://api.github.com/users/kyrsquir","html_url":"https://github.com/kyrsquir","followers_url":"https://api.github.com/users/kyrsquir/followers","following_url":"https://api.github.com/users/kyrsquir/following{/other_user}","gists_url":"https://api.github.com/users/kyrsquir/gists{/gist_id}","starred_url":"https://api.github.com/users/kyrsquir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyrsquir/subscriptions","organizations_url":"https://api.github.com/users/kyrsquir/orgs","repos_url":"https://api.github.com/users/kyrsquir/repos","events_url":"https://api.github.com/users/kyrsquir/events{/privacy}","received_events_url":"https://api.github.com/users/kyrsquir/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-11-19T23:49:55Z","updated_at":"2015-11-23T13:47:00Z","closed_at":null,"body":"on card modal.\r\n\r\n- Render comments (already the case)\r\n- Add textarea for new comment\r\n  - Submit button becomes active only when user starts typing\r\n- Add behaviour to post new comment\r\n- Add method to edit comment\r\n- Add method to delete comment\r\n\r\nComment must include message + user. For now send whatever user id you wish (since backend is not quite ready yet).\r\n\r\n__ we need global method to access current user. Current user will become available when user signs in. For now you can hardcode it. Just make sure it travels when switching board__\r\n\r\nBack-end not ready yet but push comments as an array by using the update card function.\r\n\r\n![capture d ecran 2015-11-20 a 08 40 56](https://cloud.githubusercontent.com/assets/547754/11288200/150baf0e-8f65-11e5-8d8d-df13bf766751.png)"},"comment":{"url":"https://api.github.com/repos/olimart/kanban/issues/comments/158936659","html_url":"https://github.com/olimart/kanban/issues/19#issuecomment-158936659","issue_url":"https://api.github.com/repos/olimart/kanban/issues/19","id":158936659,"user":{"login":"olimart","id":547754,"avatar_url":"https://avatars.githubusercontent.com/u/547754?v=3","gravatar_id":"","url":"https://api.github.com/users/olimart","html_url":"https://github.com/olimart","followers_url":"https://api.github.com/users/olimart/followers","following_url":"https://api.github.com/users/olimart/following{/other_user}","gists_url":"https://api.github.com/users/olimart/gists{/gist_id}","starred_url":"https://api.github.com/users/olimart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olimart/subscriptions","organizations_url":"https://api.github.com/users/olimart/orgs","repos_url":"https://api.github.com/users/olimart/repos","events_url":"https://api.github.com/users/olimart/events{/privacy}","received_events_url":"https://api.github.com/users/olimart/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T13:47:00Z","updated_at":"2015-11-23T13:47:00Z","body":"give it a try with the update board endpoint (which we already use to update board's name for example)\r\n\r\n`PUT api/boards/:slug`\r\n\r\nthe API accepts (under lists/cards/comments) 2 parameters: `message` and `user`\r\nIf you can't make it work I will refactor the API as it gets too complex and is bad design."}}