{"action":"created","issue":{"url":"https://api.github.com/repos/sf-wdi-24/crud-api/issues/3","labels_url":"https://api.github.com/repos/sf-wdi-24/crud-api/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/sf-wdi-24/crud-api/issues/3/comments","events_url":"https://api.github.com/repos/sf-wdi-24/crud-api/issues/3/events","html_url":"https://github.com/sf-wdi-24/crud-api/pull/3","id":114936797,"number":3,"title":"Http exception","user":{"login":"eerwitt","id":1329385,"avatar_url":"https://avatars.githubusercontent.com/u/1329385?v=3","gravatar_id":"","url":"https://api.github.com/users/eerwitt","html_url":"https://github.com/eerwitt","followers_url":"https://api.github.com/users/eerwitt/followers","following_url":"https://api.github.com/users/eerwitt/following{/other_user}","gists_url":"https://api.github.com/users/eerwitt/gists{/gist_id}","starred_url":"https://api.github.com/users/eerwitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eerwitt/subscriptions","organizations_url":"https://api.github.com/users/eerwitt/orgs","repos_url":"https://api.github.com/users/eerwitt/repos","events_url":"https://api.github.com/users/eerwitt/events{/privacy}","received_events_url":"https://api.github.com/users/eerwitt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sf-wdi-24/crud-api/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"cameronjacoby","id":7833470,"avatar_url":"https://avatars.githubusercontent.com/u/7833470?v=3","gravatar_id":"","url":"https://api.github.com/users/cameronjacoby","html_url":"https://github.com/cameronjacoby","followers_url":"https://api.github.com/users/cameronjacoby/followers","following_url":"https://api.github.com/users/cameronjacoby/following{/other_user}","gists_url":"https://api.github.com/users/cameronjacoby/gists{/gist_id}","starred_url":"https://api.github.com/users/cameronjacoby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cameronjacoby/subscriptions","organizations_url":"https://api.github.com/users/cameronjacoby/orgs","repos_url":"https://api.github.com/users/cameronjacoby/repos","events_url":"https://api.github.com/users/cameronjacoby/events{/privacy}","received_events_url":"https://api.github.com/users/cameronjacoby/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-03T23:45:06Z","updated_at":"2015-11-04T02:41:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sf-wdi-24/crud-api/pulls/3","html_url":"https://github.com/sf-wdi-24/crud-api/pull/3","diff_url":"https://github.com/sf-wdi-24/crud-api/pull/3.diff","patch_url":"https://github.com/sf-wdi-24/crud-api/pull/3.patch"},"body":"Added in a few items which were useful and want to see what you think.\r\n\r\n* Added in a local debugger, it's quite useful with node programs.\r\n* Changes to support returning a 404 error message (used in module-02).\r\n* Created a function to return singular resources (if this is useful we can change it to a promise)."},"comment":{"url":"https://api.github.com/repos/sf-wdi-24/crud-api/issues/comments/153553607","html_url":"https://github.com/sf-wdi-24/crud-api/pull/3#issuecomment-153553607","issue_url":"https://api.github.com/repos/sf-wdi-24/crud-api/issues/3","id":153553607,"user":{"login":"cameronjacoby","id":7833470,"avatar_url":"https://avatars.githubusercontent.com/u/7833470?v=3","gravatar_id":"","url":"https://api.github.com/users/cameronjacoby","html_url":"https://github.com/cameronjacoby","followers_url":"https://api.github.com/users/cameronjacoby/followers","following_url":"https://api.github.com/users/cameronjacoby/following{/other_user}","gists_url":"https://api.github.com/users/cameronjacoby/gists{/gist_id}","starred_url":"https://api.github.com/users/cameronjacoby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cameronjacoby/subscriptions","organizations_url":"https://api.github.com/users/cameronjacoby/orgs","repos_url":"https://api.github.com/users/cameronjacoby/repos","events_url":"https://api.github.com/users/cameronjacoby/events{/privacy}","received_events_url":"https://api.github.com/users/cameronjacoby/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T02:41:35Z","updated_at":"2015-11-04T02:41:35Z","body":":+1: to all your changes. Love the helper function for handling singular responses and the added 404 error-handling. A few things I just added on:\r\n- Formatted all errors to come back as objects with the key `error`\r\n- Changed `GET /books` and `GET /wines` to return objects"}}