{"action":"created","comment":{"url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls/comments/171301032","pull_request_review_id":100129436,"id":171301032,"diff_hunk":"@@ -0,0 +1,163 @@\n+const apiClient = (function () {\n+\n+  const ROOT_URL = \"http://taste-api.binarlab.com\";\n+\n+  const API_URL = \"http://taste-api.binarlab.com/api/v1/\";\n+\n+  const CATEGORIES_PATH = \"categories\",\n+    PLACES_PATH = \"places/\",\n+    USER_PATH = \"user/\",\n+    LOGIN_PATH = \"user/sign_in/\",\n+    REGISTER_PATH = \"user/sign_up/\",\n+    REVIEWS_PATH = \"reviews/\",\n+    CREATE_REVIEW_PATH = \"/reviews#create\",\n+    CREATE_PLACE_PATH = \"places#create\";","path":"app/resources/js/api-client.js","position":14,"original_position":14,"commit_id":"c83dc67fa1b6fca7032e188c276ad1043b456d5d","original_commit_id":"c83dc67fa1b6fca7032e188c276ad1043b456d5d","user":{"login":"MaciejOstojski4","id":10244118,"avatar_url":"https://avatars0.githubusercontent.com/u/10244118?v=4","gravatar_id":"","url":"https://api.github.com/users/MaciejOstojski4","html_url":"https://github.com/MaciejOstojski4","followers_url":"https://api.github.com/users/MaciejOstojski4/followers","following_url":"https://api.github.com/users/MaciejOstojski4/following{/other_user}","gists_url":"https://api.github.com/users/MaciejOstojski4/gists{/gist_id}","starred_url":"https://api.github.com/users/MaciejOstojski4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaciejOstojski4/subscriptions","organizations_url":"https://api.github.com/users/MaciejOstojski4/orgs","repos_url":"https://api.github.com/users/MaciejOstojski4/repos","events_url":"https://api.github.com/users/MaciejOstojski4/events{/privacy}","received_events_url":"https://api.github.com/users/MaciejOstojski4/received_events","type":"User","site_admin":false},"body":"It depends on where it's located in url. If it is after API_URL path, then it hasn't slash, but if it's in the middle than it has one.","created_at":"2018-02-28T16:22:36Z","updated_at":"2018-02-28T16:22:36Z","html_url":"https://github.com/MaciejOstojski4/BinarPlaces-website/pull/2#discussion_r171301032","pull_request_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls/comments/171301032"},"html":{"href":"https://github.com/MaciejOstojski4/BinarPlaces-website/pull/2#discussion_r171301032"},"pull_request":{"href":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls/2"}},"in_reply_to_id":171268413},"pull_request":{"url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls/2","id":171957641,"html_url":"https://github.com/MaciejOstojski4/BinarPlaces-website/pull/2","diff_url":"https://github.com/MaciejOstojski4/BinarPlaces-website/pull/2.diff","patch_url":"https://github.com/MaciejOstojski4/BinarPlaces-website/pull/2.patch","issue_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/issues/2","number":2,"state":"open","locked":false,"title":"empty branch for full code review","user":{"login":"dwoznicka","id":9791020,"avatar_url":"https://avatars1.githubusercontent.com/u/9791020?v=4","gravatar_id":"","url":"https://api.github.com/users/dwoznicka","html_url":"https://github.com/dwoznicka","followers_url":"https://api.github.com/users/dwoznicka/followers","following_url":"https://api.github.com/users/dwoznicka/following{/other_user}","gists_url":"https://api.github.com/users/dwoznicka/gists{/gist_id}","starred_url":"https://api.github.com/users/dwoznicka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwoznicka/subscriptions","organizations_url":"https://api.github.com/users/dwoznicka/orgs","repos_url":"https://api.github.com/users/dwoznicka/repos","events_url":"https://api.github.com/users/dwoznicka/events{/privacy}","received_events_url":"https://api.github.com/users/dwoznicka/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-28T13:47:48Z","updated_at":"2018-02-28T16:22:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2551a27a640080c4020df5807347c5d6a0a73ee5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls/2/commits","review_comments_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls/2/comments","review_comment_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/issues/2/comments","statuses_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/statuses/c83dc67fa1b6fca7032e188c276ad1043b456d5d","head":{"label":"MaciejOstojski4:master","ref":"master","sha":"c83dc67fa1b6fca7032e188c276ad1043b456d5d","user":{"login":"MaciejOstojski4","id":10244118,"avatar_url":"https://avatars0.githubusercontent.com/u/10244118?v=4","gravatar_id":"","url":"https://api.github.com/users/MaciejOstojski4","html_url":"https://github.com/MaciejOstojski4","followers_url":"https://api.github.com/users/MaciejOstojski4/followers","following_url":"https://api.github.com/users/MaciejOstojski4/following{/other_user}","gists_url":"https://api.github.com/users/MaciejOstojski4/gists{/gist_id}","starred_url":"https://api.github.com/users/MaciejOstojski4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaciejOstojski4/subscriptions","organizations_url":"https://api.github.com/users/MaciejOstojski4/orgs","repos_url":"https://api.github.com/users/MaciejOstojski4/repos","events_url":"https://api.github.com/users/MaciejOstojski4/events{/privacy}","received_events_url":"https://api.github.com/users/MaciejOstojski4/received_events","type":"User","site_admin":false},"repo":{"id":113549113,"name":"BinarPlaces-website","full_name":"MaciejOstojski4/BinarPlaces-website","owner":{"login":"MaciejOstojski4","id":10244118,"avatar_url":"https://avatars0.githubusercontent.com/u/10244118?v=4","gravatar_id":"","url":"https://api.github.com/users/MaciejOstojski4","html_url":"https://github.com/MaciejOstojski4","followers_url":"https://api.github.com/users/MaciejOstojski4/followers","following_url":"https://api.github.com/users/MaciejOstojski4/following{/other_user}","gists_url":"https://api.github.com/users/MaciejOstojski4/gists{/gist_id}","starred_url":"https://api.github.com/users/MaciejOstojski4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaciejOstojski4/subscriptions","organizations_url":"https://api.github.com/users/MaciejOstojski4/orgs","repos_url":"https://api.github.com/users/MaciejOstojski4/repos","events_url":"https://api.github.com/users/MaciejOstojski4/events{/privacy}","received_events_url":"https://api.github.com/users/MaciejOstojski4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaciejOstojski4/BinarPlaces-website","description":null,"fork":false,"url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website","forks_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/forks","keys_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/teams","hooks_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/hooks","issue_events_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/issues/events{/number}","events_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/events","assignees_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/assignees{/user}","branches_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/branches{/branch}","tags_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/tags","blobs_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/statuses/{sha}","languages_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/languages","stargazers_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/stargazers","contributors_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/contributors","subscribers_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/subscribers","subscription_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/subscription","commits_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/contents/{+path}","compare_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/merges","archive_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/downloads","issues_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/issues{/number}","pulls_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls{/number}","milestones_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/milestones{/number}","notifications_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/labels{/name}","releases_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/releases{/id}","deployments_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/deployments","created_at":"2017-12-08T08:09:30Z","updated_at":"2017-12-21T11:43:06Z","pushed_at":"2018-02-28T13:47:49Z","git_url":"git://github.com/MaciejOstojski4/BinarPlaces-website.git","ssh_url":"git@github.com:MaciejOstojski4/BinarPlaces-website.git","clone_url":"https://github.com/MaciejOstojski4/BinarPlaces-website.git","svn_url":"https://github.com/MaciejOstojski4/BinarPlaces-website","homepage":null,"size":1142,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"MaciejOstojski4:empty2","ref":"empty2","sha":"2b20b44609455e7162b5c7fcf514c03301f84d11","user":{"login":"MaciejOstojski4","id":10244118,"avatar_url":"https://avatars0.githubusercontent.com/u/10244118?v=4","gravatar_id":"","url":"https://api.github.com/users/MaciejOstojski4","html_url":"https://github.com/MaciejOstojski4","followers_url":"https://api.github.com/users/MaciejOstojski4/followers","following_url":"https://api.github.com/users/MaciejOstojski4/following{/other_user}","gists_url":"https://api.github.com/users/MaciejOstojski4/gists{/gist_id}","starred_url":"https://api.github.com/users/MaciejOstojski4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaciejOstojski4/subscriptions","organizations_url":"https://api.github.com/users/MaciejOstojski4/orgs","repos_url":"https://api.github.com/users/MaciejOstojski4/repos","events_url":"https://api.github.com/users/MaciejOstojski4/events{/privacy}","received_events_url":"https://api.github.com/users/MaciejOstojski4/received_events","type":"User","site_admin":false},"repo":{"id":113549113,"name":"BinarPlaces-website","full_name":"MaciejOstojski4/BinarPlaces-website","owner":{"login":"MaciejOstojski4","id":10244118,"avatar_url":"https://avatars0.githubusercontent.com/u/10244118?v=4","gravatar_id":"","url":"https://api.github.com/users/MaciejOstojski4","html_url":"https://github.com/MaciejOstojski4","followers_url":"https://api.github.com/users/MaciejOstojski4/followers","following_url":"https://api.github.com/users/MaciejOstojski4/following{/other_user}","gists_url":"https://api.github.com/users/MaciejOstojski4/gists{/gist_id}","starred_url":"https://api.github.com/users/MaciejOstojski4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaciejOstojski4/subscriptions","organizations_url":"https://api.github.com/users/MaciejOstojski4/orgs","repos_url":"https://api.github.com/users/MaciejOstojski4/repos","events_url":"https://api.github.com/users/MaciejOstojski4/events{/privacy}","received_events_url":"https://api.github.com/users/MaciejOstojski4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaciejOstojski4/BinarPlaces-website","description":null,"fork":false,"url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website","forks_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/forks","keys_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/teams","hooks_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/hooks","issue_events_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/issues/events{/number}","events_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/events","assignees_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/assignees{/user}","branches_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/branches{/branch}","tags_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/tags","blobs_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/statuses/{sha}","languages_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/languages","stargazers_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/stargazers","contributors_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/contributors","subscribers_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/subscribers","subscription_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/subscription","commits_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/contents/{+path}","compare_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/merges","archive_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/downloads","issues_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/issues{/number}","pulls_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls{/number}","milestones_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/milestones{/number}","notifications_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/labels{/name}","releases_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/releases{/id}","deployments_url":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/deployments","created_at":"2017-12-08T08:09:30Z","updated_at":"2017-12-21T11:43:06Z","pushed_at":"2018-02-28T13:47:49Z","git_url":"git://github.com/MaciejOstojski4/BinarPlaces-website.git","ssh_url":"git@github.com:MaciejOstojski4/BinarPlaces-website.git","clone_url":"https://github.com/MaciejOstojski4/BinarPlaces-website.git","svn_url":"https://github.com/MaciejOstojski4/BinarPlaces-website","homepage":null,"size":1142,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls/2"},"html":{"href":"https://github.com/MaciejOstojski4/BinarPlaces-website/pull/2"},"issue":{"href":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/issues/2"},"comments":{"href":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/MaciejOstojski4/BinarPlaces-website/statuses/c83dc67fa1b6fca7032e188c276ad1043b456d5d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"MaciejOstojski4"}}