{"action":"created","comment":{"url":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls/comments/108172587","pull_request_review_id":29185532,"id":108172587,"diff_hunk":"@@ -0,0 +1,32 @@\n+angular.module('librarium')\n+  .factory('BooksService',\n+    ['Restangular', function (Restangular) {\n+      const urlBase = '/books';\n+      const booksService = {};\n+\n+      booksService.getBookList = function (pageNumber) {\n+        let page = pageNumber;\n+        if (page === null) {\n+          page = 1;\n+        }\n+\n+        return Restangular.all(urlBase)\n+          .getList({ page: page, per_page: 24 });\n+      };\n+\n+      booksService.getBookSearch = function (attributes) {","path":"src/app/services/books.service.js","position":17,"original_position":17,"commit_id":"49d7afb19f8a294cd215f5240f1c526ffe521791","original_commit_id":"49d7afb19f8a294cd215f5240f1c526ffe521791","user":{"login":"valentina91p","id":5251813,"avatar_url":"https://avatars0.githubusercontent.com/u/5251813?v=3","gravatar_id":"","url":"https://api.github.com/users/valentina91p","html_url":"https://github.com/valentina91p","followers_url":"https://api.github.com/users/valentina91p/followers","following_url":"https://api.github.com/users/valentina91p/following{/other_user}","gists_url":"https://api.github.com/users/valentina91p/gists{/gist_id}","starred_url":"https://api.github.com/users/valentina91p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentina91p/subscriptions","organizations_url":"https://api.github.com/users/valentina91p/orgs","repos_url":"https://api.github.com/users/valentina91p/repos","events_url":"https://api.github.com/users/valentina91p/events{/privacy}","received_events_url":"https://api.github.com/users/valentina91p/received_events","type":"User","site_admin":false},"body":"This and the previous method should be combine into one","created_at":"2017-03-27T13:48:57Z","updated_at":"2017-03-27T13:49:18Z","html_url":"https://github.com/cquiro/librarium-angularjs/pull/8#discussion_r108172587","pull_request_url":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls/comments/108172587"},"html":{"href":"https://github.com/cquiro/librarium-angularjs/pull/8#discussion_r108172587"},"pull_request":{"href":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls/8","id":112672214,"html_url":"https://github.com/cquiro/librarium-angularjs/pull/8","diff_url":"https://github.com/cquiro/librarium-angularjs/pull/8.diff","patch_url":"https://github.com/cquiro/librarium-angularjs/pull/8.patch","issue_url":"https://api.github.com/repos/cquiro/librarium-angularjs/issues/8","number":8,"state":"open","locked":false,"title":"Book index","user":{"login":"cquiro","id":12885969,"avatar_url":"https://avatars2.githubusercontent.com/u/12885969?v=3","gravatar_id":"","url":"https://api.github.com/users/cquiro","html_url":"https://github.com/cquiro","followers_url":"https://api.github.com/users/cquiro/followers","following_url":"https://api.github.com/users/cquiro/following{/other_user}","gists_url":"https://api.github.com/users/cquiro/gists{/gist_id}","starred_url":"https://api.github.com/users/cquiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cquiro/subscriptions","organizations_url":"https://api.github.com/users/cquiro/orgs","repos_url":"https://api.github.com/users/cquiro/repos","events_url":"https://api.github.com/users/cquiro/events{/privacy}","received_events_url":"https://api.github.com/users/cquiro/received_events","type":"User","site_admin":false},"body":"# Summary\r\n\r\n* Create book index displaying each book with its cover, title, author and rating in stars.\r\n* Add search form for books.\r\n* Add limited pagination capabilities\r\n\r\n# Trello Card\r\n\r\nhttps://trello.com/c/styMUfZT/5-listado-de-libros\r\n\r\n# Screenshots\r\n\r\n![book_index](https://cloud.githubusercontent.com/assets/12885969/24342367/e6ebde3a-1296-11e7-961c-bc004e6667cf.gif)\r\n","created_at":"2017-03-27T05:39:29Z","updated_at":"2017-03-27T13:49:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46ddceedc3ba24f3ca29613d8b53914fccc9242d","assignee":{"login":"valentina91p","id":5251813,"avatar_url":"https://avatars0.githubusercontent.com/u/5251813?v=3","gravatar_id":"","url":"https://api.github.com/users/valentina91p","html_url":"https://github.com/valentina91p","followers_url":"https://api.github.com/users/valentina91p/followers","following_url":"https://api.github.com/users/valentina91p/following{/other_user}","gists_url":"https://api.github.com/users/valentina91p/gists{/gist_id}","starred_url":"https://api.github.com/users/valentina91p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentina91p/subscriptions","organizations_url":"https://api.github.com/users/valentina91p/orgs","repos_url":"https://api.github.com/users/valentina91p/repos","events_url":"https://api.github.com/users/valentina91p/events{/privacy}","received_events_url":"https://api.github.com/users/valentina91p/received_events","type":"User","site_admin":false},"assignees":[{"login":"valentina91p","id":5251813,"avatar_url":"https://avatars0.githubusercontent.com/u/5251813?v=3","gravatar_id":"","url":"https://api.github.com/users/valentina91p","html_url":"https://github.com/valentina91p","followers_url":"https://api.github.com/users/valentina91p/followers","following_url":"https://api.github.com/users/valentina91p/following{/other_user}","gists_url":"https://api.github.com/users/valentina91p/gists{/gist_id}","starred_url":"https://api.github.com/users/valentina91p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentina91p/subscriptions","organizations_url":"https://api.github.com/users/valentina91p/orgs","repos_url":"https://api.github.com/users/valentina91p/repos","events_url":"https://api.github.com/users/valentina91p/events{/privacy}","received_events_url":"https://api.github.com/users/valentina91p/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls/8/commits","review_comments_url":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls/8/comments","review_comment_url":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cquiro/librarium-angularjs/issues/8/comments","statuses_url":"https://api.github.com/repos/cquiro/librarium-angularjs/statuses/49d7afb19f8a294cd215f5240f1c526ffe521791","head":{"label":"cquiro:book_index","ref":"book_index","sha":"49d7afb19f8a294cd215f5240f1c526ffe521791","user":{"login":"cquiro","id":12885969,"avatar_url":"https://avatars2.githubusercontent.com/u/12885969?v=3","gravatar_id":"","url":"https://api.github.com/users/cquiro","html_url":"https://github.com/cquiro","followers_url":"https://api.github.com/users/cquiro/followers","following_url":"https://api.github.com/users/cquiro/following{/other_user}","gists_url":"https://api.github.com/users/cquiro/gists{/gist_id}","starred_url":"https://api.github.com/users/cquiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cquiro/subscriptions","organizations_url":"https://api.github.com/users/cquiro/orgs","repos_url":"https://api.github.com/users/cquiro/repos","events_url":"https://api.github.com/users/cquiro/events{/privacy}","received_events_url":"https://api.github.com/users/cquiro/received_events","type":"User","site_admin":false},"repo":{"id":84237669,"name":"librarium-angularjs","full_name":"cquiro/librarium-angularjs","owner":{"login":"cquiro","id":12885969,"avatar_url":"https://avatars2.githubusercontent.com/u/12885969?v=3","gravatar_id":"","url":"https://api.github.com/users/cquiro","html_url":"https://github.com/cquiro","followers_url":"https://api.github.com/users/cquiro/followers","following_url":"https://api.github.com/users/cquiro/following{/other_user}","gists_url":"https://api.github.com/users/cquiro/gists{/gist_id}","starred_url":"https://api.github.com/users/cquiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cquiro/subscriptions","organizations_url":"https://api.github.com/users/cquiro/orgs","repos_url":"https://api.github.com/users/cquiro/repos","events_url":"https://api.github.com/users/cquiro/events{/privacy}","received_events_url":"https://api.github.com/users/cquiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cquiro/librarium-angularjs","description":"This repository is base for angular projects","fork":true,"url":"https://api.github.com/repos/cquiro/librarium-angularjs","forks_url":"https://api.github.com/repos/cquiro/librarium-angularjs/forks","keys_url":"https://api.github.com/repos/cquiro/librarium-angularjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cquiro/librarium-angularjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cquiro/librarium-angularjs/teams","hooks_url":"https://api.github.com/repos/cquiro/librarium-angularjs/hooks","issue_events_url":"https://api.github.com/repos/cquiro/librarium-angularjs/issues/events{/number}","events_url":"https://api.github.com/repos/cquiro/librarium-angularjs/events","assignees_url":"https://api.github.com/repos/cquiro/librarium-angularjs/assignees{/user}","branches_url":"https://api.github.com/repos/cquiro/librarium-angularjs/branches{/branch}","tags_url":"https://api.github.com/repos/cquiro/librarium-angularjs/tags","blobs_url":"https://api.github.com/repos/cquiro/librarium-angularjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cquiro/librarium-angularjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cquiro/librarium-angularjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/cquiro/librarium-angularjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cquiro/librarium-angularjs/statuses/{sha}","languages_url":"https://api.github.com/repos/cquiro/librarium-angularjs/languages","stargazers_url":"https://api.github.com/repos/cquiro/librarium-angularjs/stargazers","contributors_url":"https://api.github.com/repos/cquiro/librarium-angularjs/contributors","subscribers_url":"https://api.github.com/repos/cquiro/librarium-angularjs/subscribers","subscription_url":"https://api.github.com/repos/cquiro/librarium-angularjs/subscription","commits_url":"https://api.github.com/repos/cquiro/librarium-angularjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/cquiro/librarium-angularjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/cquiro/librarium-angularjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/cquiro/librarium-angularjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/cquiro/librarium-angularjs/contents/{+path}","compare_url":"https://api.github.com/repos/cquiro/librarium-angularjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cquiro/librarium-angularjs/merges","archive_url":"https://api.github.com/repos/cquiro/librarium-angularjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cquiro/librarium-angularjs/downloads","issues_url":"https://api.github.com/repos/cquiro/librarium-angularjs/issues{/number}","pulls_url":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls{/number}","milestones_url":"https://api.github.com/repos/cquiro/librarium-angularjs/milestones{/number}","notifications_url":"https://api.github.com/repos/cquiro/librarium-angularjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cquiro/librarium-angularjs/labels{/name}","releases_url":"https://api.github.com/repos/cquiro/librarium-angularjs/releases{/id}","deployments_url":"https://api.github.com/repos/cquiro/librarium-angularjs/deployments","created_at":"2017-03-07T19:27:29Z","updated_at":"2017-03-07T19:38:29Z","pushed_at":"2017-03-27T13:48:06Z","git_url":"git://github.com/cquiro/librarium-angularjs.git","ssh_url":"git@github.com:cquiro/librarium-angularjs.git","clone_url":"https://github.com/cquiro/librarium-angularjs.git","svn_url":"https://github.com/cquiro/librarium-angularjs","homepage":null,"size":237,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"cquiro:master","ref":"master","sha":"c1df320625060f31033ea221c4d8060fea1d601c","user":{"login":"cquiro","id":12885969,"avatar_url":"https://avatars2.githubusercontent.com/u/12885969?v=3","gravatar_id":"","url":"https://api.github.com/users/cquiro","html_url":"https://github.com/cquiro","followers_url":"https://api.github.com/users/cquiro/followers","following_url":"https://api.github.com/users/cquiro/following{/other_user}","gists_url":"https://api.github.com/users/cquiro/gists{/gist_id}","starred_url":"https://api.github.com/users/cquiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cquiro/subscriptions","organizations_url":"https://api.github.com/users/cquiro/orgs","repos_url":"https://api.github.com/users/cquiro/repos","events_url":"https://api.github.com/users/cquiro/events{/privacy}","received_events_url":"https://api.github.com/users/cquiro/received_events","type":"User","site_admin":false},"repo":{"id":84237669,"name":"librarium-angularjs","full_name":"cquiro/librarium-angularjs","owner":{"login":"cquiro","id":12885969,"avatar_url":"https://avatars2.githubusercontent.com/u/12885969?v=3","gravatar_id":"","url":"https://api.github.com/users/cquiro","html_url":"https://github.com/cquiro","followers_url":"https://api.github.com/users/cquiro/followers","following_url":"https://api.github.com/users/cquiro/following{/other_user}","gists_url":"https://api.github.com/users/cquiro/gists{/gist_id}","starred_url":"https://api.github.com/users/cquiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cquiro/subscriptions","organizations_url":"https://api.github.com/users/cquiro/orgs","repos_url":"https://api.github.com/users/cquiro/repos","events_url":"https://api.github.com/users/cquiro/events{/privacy}","received_events_url":"https://api.github.com/users/cquiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cquiro/librarium-angularjs","description":"This repository is base for angular projects","fork":true,"url":"https://api.github.com/repos/cquiro/librarium-angularjs","forks_url":"https://api.github.com/repos/cquiro/librarium-angularjs/forks","keys_url":"https://api.github.com/repos/cquiro/librarium-angularjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cquiro/librarium-angularjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cquiro/librarium-angularjs/teams","hooks_url":"https://api.github.com/repos/cquiro/librarium-angularjs/hooks","issue_events_url":"https://api.github.com/repos/cquiro/librarium-angularjs/issues/events{/number}","events_url":"https://api.github.com/repos/cquiro/librarium-angularjs/events","assignees_url":"https://api.github.com/repos/cquiro/librarium-angularjs/assignees{/user}","branches_url":"https://api.github.com/repos/cquiro/librarium-angularjs/branches{/branch}","tags_url":"https://api.github.com/repos/cquiro/librarium-angularjs/tags","blobs_url":"https://api.github.com/repos/cquiro/librarium-angularjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cquiro/librarium-angularjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cquiro/librarium-angularjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/cquiro/librarium-angularjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cquiro/librarium-angularjs/statuses/{sha}","languages_url":"https://api.github.com/repos/cquiro/librarium-angularjs/languages","stargazers_url":"https://api.github.com/repos/cquiro/librarium-angularjs/stargazers","contributors_url":"https://api.github.com/repos/cquiro/librarium-angularjs/contributors","subscribers_url":"https://api.github.com/repos/cquiro/librarium-angularjs/subscribers","subscription_url":"https://api.github.com/repos/cquiro/librarium-angularjs/subscription","commits_url":"https://api.github.com/repos/cquiro/librarium-angularjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/cquiro/librarium-angularjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/cquiro/librarium-angularjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/cquiro/librarium-angularjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/cquiro/librarium-angularjs/contents/{+path}","compare_url":"https://api.github.com/repos/cquiro/librarium-angularjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cquiro/librarium-angularjs/merges","archive_url":"https://api.github.com/repos/cquiro/librarium-angularjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cquiro/librarium-angularjs/downloads","issues_url":"https://api.github.com/repos/cquiro/librarium-angularjs/issues{/number}","pulls_url":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls{/number}","milestones_url":"https://api.github.com/repos/cquiro/librarium-angularjs/milestones{/number}","notifications_url":"https://api.github.com/repos/cquiro/librarium-angularjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cquiro/librarium-angularjs/labels{/name}","releases_url":"https://api.github.com/repos/cquiro/librarium-angularjs/releases{/id}","deployments_url":"https://api.github.com/repos/cquiro/librarium-angularjs/deployments","created_at":"2017-03-07T19:27:29Z","updated_at":"2017-03-07T19:38:29Z","pushed_at":"2017-03-27T13:48:06Z","git_url":"git://github.com/cquiro/librarium-angularjs.git","ssh_url":"git@github.com:cquiro/librarium-angularjs.git","clone_url":"https://github.com/cquiro/librarium-angularjs.git","svn_url":"https://github.com/cquiro/librarium-angularjs","homepage":null,"size":237,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls/8"},"html":{"href":"https://github.com/cquiro/librarium-angularjs/pull/8"},"issue":{"href":"https://api.github.com/repos/cquiro/librarium-angularjs/issues/8"},"comments":{"href":"https://api.github.com/repos/cquiro/librarium-angularjs/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cquiro/librarium-angularjs/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/cquiro/librarium-angularjs/statuses/49d7afb19f8a294cd215f5240f1c526ffe521791"}}}}
{"actor":{"display_login":"valentina91p"}}