{"action":"created","comment":{"url":"https://api.github.com/repos/ridhoq/soundslike/pulls/comments/239992877","pull_request_review_id":182931510,"id":239992877,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTk5Mjg3Nw==","diff_hunk":"@@ -0,0 +1,253 @@\n+# soundslike - API documentation\n+Learn how to use the soundslike API!\n+\n+First. for the sake of this, im going to use soundslike.com as the url, however localhost:8888 might be the url if you're using docker \n+\n+## Section 1. Authentication \n+\n+### Getting auth token from api\n+\n+run 'GET' http://soundslike.com/api/token with a username and password with basic AUTH  \n+\n+this will return a response of...\n+```json\n+    {\n+        \"expiration\": 3000,\n+        \"token\": \"token_string\"\n+    }\n+``` \n+you'll need to Base64 encode the bearer token provided earlier and include it in all API requests, except user creation \n+\n+## Section 2. Users \n+\n+### creating a new user \n+\n+run 'POST' http://soundslike.com/api/users/\n+\n+with a application/json body of...\n+```json\n+{\n+    \"username\" : \"test\", \n+    \"email\" : \"test@gmail.com\", \n+    \"password\": \"test\"\n+}\n+``` \n+and this will return a response of... \n+```json\n+{\n+    \"email\": \"test@gmail.com\",\n+    \"member_since\": \"Fri, 07 Dec 2018 06:19:28 GMT\",\n+    \"username\": \"test\"\n+}\n+``` \n+### getting a user \n+\n+run 'GET' http://soundslike.com/api/users/method_man with no body and this will return a response of...\n+```json\n+{\n+    \"email\": \"method_man@wutang.com\",","path":"docs/api.md","position":48,"original_position":48,"commit_id":"d76ce724bd70c6109a80b707090d48a7ce5f6b01","original_commit_id":"d76ce724bd70c6109a80b707090d48a7ce5f6b01","user":{"login":"ridhoq","id":943533,"node_id":"MDQ6VXNlcjk0MzUzMw==","avatar_url":"https://avatars3.githubusercontent.com/u/943533?v=4","gravatar_id":"","url":"https://api.github.com/users/ridhoq","html_url":"https://github.com/ridhoq","followers_url":"https://api.github.com/users/ridhoq/followers","following_url":"https://api.github.com/users/ridhoq/following{/other_user}","gists_url":"https://api.github.com/users/ridhoq/gists{/gist_id}","starred_url":"https://api.github.com/users/ridhoq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridhoq/subscriptions","organizations_url":"https://api.github.com/users/ridhoq/orgs","repos_url":"https://api.github.com/users/ridhoq/repos","events_url":"https://api.github.com/users/ridhoq/events{/privacy}","received_events_url":"https://api.github.com/users/ridhoq/received_events","type":"User","site_admin":false},"body":"lol you should use the `method_man` example above in the POST body","created_at":"2018-12-08T04:15:11Z","updated_at":"2018-12-08T04:37:44Z","html_url":"https://github.com/ridhoq/soundslike/pull/14#discussion_r239992877","pull_request_url":"https://api.github.com/repos/ridhoq/soundslike/pulls/14","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ridhoq/soundslike/pulls/comments/239992877"},"html":{"href":"https://github.com/ridhoq/soundslike/pull/14#discussion_r239992877"},"pull_request":{"href":"https://api.github.com/repos/ridhoq/soundslike/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/ridhoq/soundslike/pulls/14","id":236410197,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2NDEwMTk3","html_url":"https://github.com/ridhoq/soundslike/pull/14","diff_url":"https://github.com/ridhoq/soundslike/pull/14.diff","patch_url":"https://github.com/ridhoq/soundslike/pull/14.patch","issue_url":"https://api.github.com/repos/ridhoq/soundslike/issues/14","number":14,"state":"open","locked":false,"title":"init api docs file","user":{"login":"nkhandker","id":11024557,"node_id":"MDQ6VXNlcjExMDI0NTU3","avatar_url":"https://avatars3.githubusercontent.com/u/11024557?v=4","gravatar_id":"","url":"https://api.github.com/users/nkhandker","html_url":"https://github.com/nkhandker","followers_url":"https://api.github.com/users/nkhandker/followers","following_url":"https://api.github.com/users/nkhandker/following{/other_user}","gists_url":"https://api.github.com/users/nkhandker/gists{/gist_id}","starred_url":"https://api.github.com/users/nkhandker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkhandker/subscriptions","organizations_url":"https://api.github.com/users/nkhandker/orgs","repos_url":"https://api.github.com/users/nkhandker/repos","events_url":"https://api.github.com/users/nkhandker/events{/privacy}","received_events_url":"https://api.github.com/users/nkhandker/received_events","type":"User","site_admin":false},"body":"y u no docs","created_at":"2018-12-06T05:13:37Z","updated_at":"2018-12-08T04:37:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1b927972eda535fee09c55677299afee2612293","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ridhoq/soundslike/pulls/14/commits","review_comments_url":"https://api.github.com/repos/ridhoq/soundslike/pulls/14/comments","review_comment_url":"https://api.github.com/repos/ridhoq/soundslike/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ridhoq/soundslike/issues/14/comments","statuses_url":"https://api.github.com/repos/ridhoq/soundslike/statuses/d76ce724bd70c6109a80b707090d48a7ce5f6b01","head":{"label":"nkhandker:docs","ref":"docs","sha":"d76ce724bd70c6109a80b707090d48a7ce5f6b01","user":{"login":"nkhandker","id":11024557,"node_id":"MDQ6VXNlcjExMDI0NTU3","avatar_url":"https://avatars3.githubusercontent.com/u/11024557?v=4","gravatar_id":"","url":"https://api.github.com/users/nkhandker","html_url":"https://github.com/nkhandker","followers_url":"https://api.github.com/users/nkhandker/followers","following_url":"https://api.github.com/users/nkhandker/following{/other_user}","gists_url":"https://api.github.com/users/nkhandker/gists{/gist_id}","starred_url":"https://api.github.com/users/nkhandker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkhandker/subscriptions","organizations_url":"https://api.github.com/users/nkhandker/orgs","repos_url":"https://api.github.com/users/nkhandker/repos","events_url":"https://api.github.com/users/nkhandker/events{/privacy}","received_events_url":"https://api.github.com/users/nkhandker/received_events","type":"User","site_admin":false},"repo":{"id":158870826,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg4NzA4MjY=","name":"soundslike","full_name":"nkhandker/soundslike","private":false,"owner":{"login":"nkhandker","id":11024557,"node_id":"MDQ6VXNlcjExMDI0NTU3","avatar_url":"https://avatars3.githubusercontent.com/u/11024557?v=4","gravatar_id":"","url":"https://api.github.com/users/nkhandker","html_url":"https://github.com/nkhandker","followers_url":"https://api.github.com/users/nkhandker/followers","following_url":"https://api.github.com/users/nkhandker/following{/other_user}","gists_url":"https://api.github.com/users/nkhandker/gists{/gist_id}","starred_url":"https://api.github.com/users/nkhandker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkhandker/subscriptions","organizations_url":"https://api.github.com/users/nkhandker/orgs","repos_url":"https://api.github.com/users/nkhandker/repos","events_url":"https://api.github.com/users/nkhandker/events{/privacy}","received_events_url":"https://api.github.com/users/nkhandker/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nkhandker/soundslike","description":"soundslike app written in flask + react","fork":true,"url":"https://api.github.com/repos/nkhandker/soundslike","forks_url":"https://api.github.com/repos/nkhandker/soundslike/forks","keys_url":"https://api.github.com/repos/nkhandker/soundslike/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nkhandker/soundslike/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nkhandker/soundslike/teams","hooks_url":"https://api.github.com/repos/nkhandker/soundslike/hooks","issue_events_url":"https://api.github.com/repos/nkhandker/soundslike/issues/events{/number}","events_url":"https://api.github.com/repos/nkhandker/soundslike/events","assignees_url":"https://api.github.com/repos/nkhandker/soundslike/assignees{/user}","branches_url":"https://api.github.com/repos/nkhandker/soundslike/branches{/branch}","tags_url":"https://api.github.com/repos/nkhandker/soundslike/tags","blobs_url":"https://api.github.com/repos/nkhandker/soundslike/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nkhandker/soundslike/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nkhandker/soundslike/git/refs{/sha}","trees_url":"https://api.github.com/repos/nkhandker/soundslike/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nkhandker/soundslike/statuses/{sha}","languages_url":"https://api.github.com/repos/nkhandker/soundslike/languages","stargazers_url":"https://api.github.com/repos/nkhandker/soundslike/stargazers","contributors_url":"https://api.github.com/repos/nkhandker/soundslike/contributors","subscribers_url":"https://api.github.com/repos/nkhandker/soundslike/subscribers","subscription_url":"https://api.github.com/repos/nkhandker/soundslike/subscription","commits_url":"https://api.github.com/repos/nkhandker/soundslike/commits{/sha}","git_commits_url":"https://api.github.com/repos/nkhandker/soundslike/git/commits{/sha}","comments_url":"https://api.github.com/repos/nkhandker/soundslike/comments{/number}","issue_comment_url":"https://api.github.com/repos/nkhandker/soundslike/issues/comments{/number}","contents_url":"https://api.github.com/repos/nkhandker/soundslike/contents/{+path}","compare_url":"https://api.github.com/repos/nkhandker/soundslike/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nkhandker/soundslike/merges","archive_url":"https://api.github.com/repos/nkhandker/soundslike/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nkhandker/soundslike/downloads","issues_url":"https://api.github.com/repos/nkhandker/soundslike/issues{/number}","pulls_url":"https://api.github.com/repos/nkhandker/soundslike/pulls{/number}","milestones_url":"https://api.github.com/repos/nkhandker/soundslike/milestones{/number}","notifications_url":"https://api.github.com/repos/nkhandker/soundslike/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nkhandker/soundslike/labels{/name}","releases_url":"https://api.github.com/repos/nkhandker/soundslike/releases{/id}","deployments_url":"https://api.github.com/repos/nkhandker/soundslike/deployments","created_at":"2018-11-23T19:27:22Z","updated_at":"2018-11-23T19:27:24Z","pushed_at":"2018-12-08T02:23:54Z","git_url":"git://github.com/nkhandker/soundslike.git","ssh_url":"git@github.com:nkhandker/soundslike.git","clone_url":"https://github.com/nkhandker/soundslike.git","svn_url":"https://github.com/nkhandker/soundslike","homepage":"","size":351,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"ridhoq:develop","ref":"develop","sha":"13adef7cbf6493e488713185fa62d6ea569cbd14","user":{"login":"ridhoq","id":943533,"node_id":"MDQ6VXNlcjk0MzUzMw==","avatar_url":"https://avatars3.githubusercontent.com/u/943533?v=4","gravatar_id":"","url":"https://api.github.com/users/ridhoq","html_url":"https://github.com/ridhoq","followers_url":"https://api.github.com/users/ridhoq/followers","following_url":"https://api.github.com/users/ridhoq/following{/other_user}","gists_url":"https://api.github.com/users/ridhoq/gists{/gist_id}","starred_url":"https://api.github.com/users/ridhoq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridhoq/subscriptions","organizations_url":"https://api.github.com/users/ridhoq/orgs","repos_url":"https://api.github.com/users/ridhoq/repos","events_url":"https://api.github.com/users/ridhoq/events{/privacy}","received_events_url":"https://api.github.com/users/ridhoq/received_events","type":"User","site_admin":false},"repo":{"id":32300958,"node_id":"MDEwOlJlcG9zaXRvcnkzMjMwMDk1OA==","name":"soundslike","full_name":"ridhoq/soundslike","private":false,"owner":{"login":"ridhoq","id":943533,"node_id":"MDQ6VXNlcjk0MzUzMw==","avatar_url":"https://avatars3.githubusercontent.com/u/943533?v=4","gravatar_id":"","url":"https://api.github.com/users/ridhoq","html_url":"https://github.com/ridhoq","followers_url":"https://api.github.com/users/ridhoq/followers","following_url":"https://api.github.com/users/ridhoq/following{/other_user}","gists_url":"https://api.github.com/users/ridhoq/gists{/gist_id}","starred_url":"https://api.github.com/users/ridhoq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ridhoq/subscriptions","organizations_url":"https://api.github.com/users/ridhoq/orgs","repos_url":"https://api.github.com/users/ridhoq/repos","events_url":"https://api.github.com/users/ridhoq/events{/privacy}","received_events_url":"https://api.github.com/users/ridhoq/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ridhoq/soundslike","description":"soundslike app written in flask + react","fork":false,"url":"https://api.github.com/repos/ridhoq/soundslike","forks_url":"https://api.github.com/repos/ridhoq/soundslike/forks","keys_url":"https://api.github.com/repos/ridhoq/soundslike/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ridhoq/soundslike/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ridhoq/soundslike/teams","hooks_url":"https://api.github.com/repos/ridhoq/soundslike/hooks","issue_events_url":"https://api.github.com/repos/ridhoq/soundslike/issues/events{/number}","events_url":"https://api.github.com/repos/ridhoq/soundslike/events","assignees_url":"https://api.github.com/repos/ridhoq/soundslike/assignees{/user}","branches_url":"https://api.github.com/repos/ridhoq/soundslike/branches{/branch}","tags_url":"https://api.github.com/repos/ridhoq/soundslike/tags","blobs_url":"https://api.github.com/repos/ridhoq/soundslike/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ridhoq/soundslike/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ridhoq/soundslike/git/refs{/sha}","trees_url":"https://api.github.com/repos/ridhoq/soundslike/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ridhoq/soundslike/statuses/{sha}","languages_url":"https://api.github.com/repos/ridhoq/soundslike/languages","stargazers_url":"https://api.github.com/repos/ridhoq/soundslike/stargazers","contributors_url":"https://api.github.com/repos/ridhoq/soundslike/contributors","subscribers_url":"https://api.github.com/repos/ridhoq/soundslike/subscribers","subscription_url":"https://api.github.com/repos/ridhoq/soundslike/subscription","commits_url":"https://api.github.com/repos/ridhoq/soundslike/commits{/sha}","git_commits_url":"https://api.github.com/repos/ridhoq/soundslike/git/commits{/sha}","comments_url":"https://api.github.com/repos/ridhoq/soundslike/comments{/number}","issue_comment_url":"https://api.github.com/repos/ridhoq/soundslike/issues/comments{/number}","contents_url":"https://api.github.com/repos/ridhoq/soundslike/contents/{+path}","compare_url":"https://api.github.com/repos/ridhoq/soundslike/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ridhoq/soundslike/merges","archive_url":"https://api.github.com/repos/ridhoq/soundslike/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ridhoq/soundslike/downloads","issues_url":"https://api.github.com/repos/ridhoq/soundslike/issues{/number}","pulls_url":"https://api.github.com/repos/ridhoq/soundslike/pulls{/number}","milestones_url":"https://api.github.com/repos/ridhoq/soundslike/milestones{/number}","notifications_url":"https://api.github.com/repos/ridhoq/soundslike/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ridhoq/soundslike/labels{/name}","releases_url":"https://api.github.com/repos/ridhoq/soundslike/releases{/id}","deployments_url":"https://api.github.com/repos/ridhoq/soundslike/deployments","created_at":"2015-03-16T04:18:39Z","updated_at":"2018-11-30T01:46:44Z","pushed_at":"2018-12-08T02:23:56Z","git_url":"git://github.com/ridhoq/soundslike.git","ssh_url":"git@github.com:ridhoq/soundslike.git","clone_url":"https://github.com/ridhoq/soundslike.git","svn_url":"https://github.com/ridhoq/soundslike","homepage":"","size":347,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":3,"open_issues":2,"watchers":5,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ridhoq/soundslike/pulls/14"},"html":{"href":"https://github.com/ridhoq/soundslike/pull/14"},"issue":{"href":"https://api.github.com/repos/ridhoq/soundslike/issues/14"},"comments":{"href":"https://api.github.com/repos/ridhoq/soundslike/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/ridhoq/soundslike/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/ridhoq/soundslike/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ridhoq/soundslike/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/ridhoq/soundslike/statuses/d76ce724bd70c6109a80b707090d48a7ce5f6b01"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ridhoq"}}