{"action":"created","comment":{"url":"https://api.github.com/repos/wolox-training/ml-rails/pulls/comments/104713718","pull_request_review_id":25561974,"id":104713718,"diff_hunk":"@@ -0,0 +1,4 @@\n+# frozen_string_literal: true\n+class BookSerializer < ActiveModel::Serializer\n+  attributes :id, :author, :title, :image, :publisher, :year, :genre, :created_at, :updated_at","path":"app/serializers/book_serializer.rb","position":3,"original_position":3,"commit_id":"e78c306196a5e9a602c0c24d9d5c3d6edacb6691","original_commit_id":"e78c306196a5e9a602c0c24d9d5c3d6edacb6691","user":{"login":"hdf1986","id":1130309,"avatar_url":"https://avatars3.githubusercontent.com/u/1130309?v=3","gravatar_id":"","url":"https://api.github.com/users/hdf1986","html_url":"https://github.com/hdf1986","followers_url":"https://api.github.com/users/hdf1986/followers","following_url":"https://api.github.com/users/hdf1986/following{/other_user}","gists_url":"https://api.github.com/users/hdf1986/gists{/gist_id}","starred_url":"https://api.github.com/users/hdf1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdf1986/subscriptions","organizations_url":"https://api.github.com/users/hdf1986/orgs","repos_url":"https://api.github.com/users/hdf1986/repos","events_url":"https://api.github.com/users/hdf1986/events{/privacy}","received_events_url":"https://api.github.com/users/hdf1986/received_events","type":"User","site_admin":false},"body":"You need to serialize the image field like it appear in Apiary :)","created_at":"2017-03-07T16:35:47Z","updated_at":"2017-03-07T16:35:55Z","html_url":"https://github.com/wolox-training/ml-rails/pull/13#discussion_r104713718","pull_request_url":"https://api.github.com/repos/wolox-training/ml-rails/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/wolox-training/ml-rails/pulls/comments/104713718"},"html":{"href":"https://github.com/wolox-training/ml-rails/pull/13#discussion_r104713718"},"pull_request":{"href":"https://api.github.com/repos/wolox-training/ml-rails/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/wolox-training/ml-rails/pulls/13","id":108636554,"html_url":"https://github.com/wolox-training/ml-rails/pull/13","diff_url":"https://github.com/wolox-training/ml-rails/pull/13.diff","patch_url":"https://github.com/wolox-training/ml-rails/pull/13.patch","issue_url":"https://api.github.com/repos/wolox-training/ml-rails/issues/13","number":13,"state":"open","locked":false,"title":"Book routes","user":{"login":"Atixx","id":5282820,"avatar_url":"https://avatars2.githubusercontent.com/u/5282820?v=3","gravatar_id":"","url":"https://api.github.com/users/Atixx","html_url":"https://github.com/Atixx","followers_url":"https://api.github.com/users/Atixx/followers","following_url":"https://api.github.com/users/Atixx/following{/other_user}","gists_url":"https://api.github.com/users/Atixx/gists{/gist_id}","starred_url":"https://api.github.com/users/Atixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Atixx/subscriptions","organizations_url":"https://api.github.com/users/Atixx/orgs","repos_url":"https://api.github.com/users/Atixx/repos","events_url":"https://api.github.com/users/Atixx/events{/privacy}","received_events_url":"https://api.github.com/users/Atixx/received_events","type":"User","site_admin":false},"body":"# Summary\r\n* I added the book controller to handle the GET requests to list the books and get by ID\r\n* I added the `author`, `genre`, `title`, query parameters for the book list\r\n\r\n# Trello Card\r\nhttps://trello.com/c/762M43we","created_at":"2017-03-01T21:50:52Z","updated_at":"2017-03-07T16:35:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0701bd95b627e1cfc38cd895815bcd147b08941","assignee":{"login":"mdesanti","id":754482,"avatar_url":"https://avatars2.githubusercontent.com/u/754482?v=3","gravatar_id":"","url":"https://api.github.com/users/mdesanti","html_url":"https://github.com/mdesanti","followers_url":"https://api.github.com/users/mdesanti/followers","following_url":"https://api.github.com/users/mdesanti/following{/other_user}","gists_url":"https://api.github.com/users/mdesanti/gists{/gist_id}","starred_url":"https://api.github.com/users/mdesanti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdesanti/subscriptions","organizations_url":"https://api.github.com/users/mdesanti/orgs","repos_url":"https://api.github.com/users/mdesanti/repos","events_url":"https://api.github.com/users/mdesanti/events{/privacy}","received_events_url":"https://api.github.com/users/mdesanti/received_events","type":"User","site_admin":false},"assignees":[{"login":"mdesanti","id":754482,"avatar_url":"https://avatars2.githubusercontent.com/u/754482?v=3","gravatar_id":"","url":"https://api.github.com/users/mdesanti","html_url":"https://github.com/mdesanti","followers_url":"https://api.github.com/users/mdesanti/followers","following_url":"https://api.github.com/users/mdesanti/following{/other_user}","gists_url":"https://api.github.com/users/mdesanti/gists{/gist_id}","starred_url":"https://api.github.com/users/mdesanti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdesanti/subscriptions","organizations_url":"https://api.github.com/users/mdesanti/orgs","repos_url":"https://api.github.com/users/mdesanti/repos","events_url":"https://api.github.com/users/mdesanti/events{/privacy}","received_events_url":"https://api.github.com/users/mdesanti/received_events","type":"User","site_admin":false},{"login":"hdf1986","id":1130309,"avatar_url":"https://avatars3.githubusercontent.com/u/1130309?v=3","gravatar_id":"","url":"https://api.github.com/users/hdf1986","html_url":"https://github.com/hdf1986","followers_url":"https://api.github.com/users/hdf1986/followers","following_url":"https://api.github.com/users/hdf1986/following{/other_user}","gists_url":"https://api.github.com/users/hdf1986/gists{/gist_id}","starred_url":"https://api.github.com/users/hdf1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdf1986/subscriptions","organizations_url":"https://api.github.com/users/hdf1986/orgs","repos_url":"https://api.github.com/users/hdf1986/repos","events_url":"https://api.github.com/users/hdf1986/events{/privacy}","received_events_url":"https://api.github.com/users/hdf1986/received_events","type":"User","site_admin":false},{"login":"Dinuuu","id":1182459,"avatar_url":"https://avatars2.githubusercontent.com/u/1182459?v=3","gravatar_id":"","url":"https://api.github.com/users/Dinuuu","html_url":"https://github.com/Dinuuu","followers_url":"https://api.github.com/users/Dinuuu/followers","following_url":"https://api.github.com/users/Dinuuu/following{/other_user}","gists_url":"https://api.github.com/users/Dinuuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Dinuuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dinuuu/subscriptions","organizations_url":"https://api.github.com/users/Dinuuu/orgs","repos_url":"https://api.github.com/users/Dinuuu/repos","events_url":"https://api.github.com/users/Dinuuu/events{/privacy}","received_events_url":"https://api.github.com/users/Dinuuu/received_events","type":"User","site_admin":false},{"login":"alanhala","id":7353713,"avatar_url":"https://avatars3.githubusercontent.com/u/7353713?v=3","gravatar_id":"","url":"https://api.github.com/users/alanhala","html_url":"https://github.com/alanhala","followers_url":"https://api.github.com/users/alanhala/followers","following_url":"https://api.github.com/users/alanhala/following{/other_user}","gists_url":"https://api.github.com/users/alanhala/gists{/gist_id}","starred_url":"https://api.github.com/users/alanhala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanhala/subscriptions","organizations_url":"https://api.github.com/users/alanhala/orgs","repos_url":"https://api.github.com/users/alanhala/repos","events_url":"https://api.github.com/users/alanhala/events{/privacy}","received_events_url":"https://api.github.com/users/alanhala/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/wolox-training/ml-rails/pulls/13/commits","review_comments_url":"https://api.github.com/repos/wolox-training/ml-rails/pulls/13/comments","review_comment_url":"https://api.github.com/repos/wolox-training/ml-rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wolox-training/ml-rails/issues/13/comments","statuses_url":"https://api.github.com/repos/wolox-training/ml-rails/statuses/e78c306196a5e9a602c0c24d9d5c3d6edacb6691","head":{"label":"wolox-training:bookRoutes","ref":"bookRoutes","sha":"e78c306196a5e9a602c0c24d9d5c3d6edacb6691","user":{"login":"wolox-training","id":14113351,"avatar_url":"https://avatars2.githubusercontent.com/u/14113351?v=3","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":82555954,"name":"ml-rails","full_name":"wolox-training/ml-rails","owner":{"login":"wolox-training","id":14113351,"avatar_url":"https://avatars2.githubusercontent.com/u/14113351?v=3","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wolox-training/ml-rails","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/ml-rails","forks_url":"https://api.github.com/repos/wolox-training/ml-rails/forks","keys_url":"https://api.github.com/repos/wolox-training/ml-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/ml-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/ml-rails/teams","hooks_url":"https://api.github.com/repos/wolox-training/ml-rails/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/ml-rails/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/ml-rails/events","assignees_url":"https://api.github.com/repos/wolox-training/ml-rails/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/ml-rails/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/ml-rails/tags","blobs_url":"https://api.github.com/repos/wolox-training/ml-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/ml-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/ml-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/ml-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/ml-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/ml-rails/languages","stargazers_url":"https://api.github.com/repos/wolox-training/ml-rails/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/ml-rails/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/ml-rails/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/ml-rails/subscription","commits_url":"https://api.github.com/repos/wolox-training/ml-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/ml-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/ml-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/ml-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/ml-rails/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/ml-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/ml-rails/merges","archive_url":"https://api.github.com/repos/wolox-training/ml-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/ml-rails/downloads","issues_url":"https://api.github.com/repos/wolox-training/ml-rails/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/ml-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/ml-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/ml-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/ml-rails/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/ml-rails/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/ml-rails/deployments","created_at":"2017-02-20T12:34:37Z","updated_at":"2017-02-21T23:36:59Z","pushed_at":"2017-03-07T15:14:29Z","git_url":"git://github.com/wolox-training/ml-rails.git","ssh_url":"git@github.com:wolox-training/ml-rails.git","clone_url":"https://github.com/wolox-training/ml-rails.git","svn_url":"https://github.com/wolox-training/ml-rails","homepage":null,"size":377,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"wolox-training:master","ref":"master","sha":"89dcc0e7d3ce7411cbf153ee2cc7b555bae4697e","user":{"login":"wolox-training","id":14113351,"avatar_url":"https://avatars2.githubusercontent.com/u/14113351?v=3","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":82555954,"name":"ml-rails","full_name":"wolox-training/ml-rails","owner":{"login":"wolox-training","id":14113351,"avatar_url":"https://avatars2.githubusercontent.com/u/14113351?v=3","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wolox-training/ml-rails","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/ml-rails","forks_url":"https://api.github.com/repos/wolox-training/ml-rails/forks","keys_url":"https://api.github.com/repos/wolox-training/ml-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/ml-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/ml-rails/teams","hooks_url":"https://api.github.com/repos/wolox-training/ml-rails/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/ml-rails/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/ml-rails/events","assignees_url":"https://api.github.com/repos/wolox-training/ml-rails/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/ml-rails/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/ml-rails/tags","blobs_url":"https://api.github.com/repos/wolox-training/ml-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/ml-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/ml-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/ml-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/ml-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/ml-rails/languages","stargazers_url":"https://api.github.com/repos/wolox-training/ml-rails/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/ml-rails/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/ml-rails/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/ml-rails/subscription","commits_url":"https://api.github.com/repos/wolox-training/ml-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/ml-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/ml-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/ml-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/ml-rails/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/ml-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/ml-rails/merges","archive_url":"https://api.github.com/repos/wolox-training/ml-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/ml-rails/downloads","issues_url":"https://api.github.com/repos/wolox-training/ml-rails/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/ml-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/ml-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/ml-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/ml-rails/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/ml-rails/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/ml-rails/deployments","created_at":"2017-02-20T12:34:37Z","updated_at":"2017-02-21T23:36:59Z","pushed_at":"2017-03-07T15:14:29Z","git_url":"git://github.com/wolox-training/ml-rails.git","ssh_url":"git@github.com:wolox-training/ml-rails.git","clone_url":"https://github.com/wolox-training/ml-rails.git","svn_url":"https://github.com/wolox-training/ml-rails","homepage":null,"size":377,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wolox-training/ml-rails/pulls/13"},"html":{"href":"https://github.com/wolox-training/ml-rails/pull/13"},"issue":{"href":"https://api.github.com/repos/wolox-training/ml-rails/issues/13"},"comments":{"href":"https://api.github.com/repos/wolox-training/ml-rails/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/wolox-training/ml-rails/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/wolox-training/ml-rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wolox-training/ml-rails/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/wolox-training/ml-rails/statuses/e78c306196a5e9a602c0c24d9d5c3d6edacb6691"}}}}
{"actor":{"display_login":"hdf1986"}}