{"action":"created","comment":{"url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls/comments/140131639","pull_request_review_id":64159838,"id":140131639,"diff_hunk":"@@ -0,0 +1,67 @@\n+### Upload Image API\n+#### `POST` Image\n+\n+```\n+/api/users/upload-image\n+```\n+**Upload image**\n+\n+##### Request header\n+| Key | Value |\n+|---|---|\n+| Accept | application/json |\n+| Content-Type | image/* |\n+| Authorization | {token_type} {access_token} |\n+\n+##### Request parameter\n+| Key | Description |\n+|---|---|\n+| file |  A binary file (up to 10Mb) |\n+\n+##### Response parameter\n+\n+| Key | Type | Description |\n+|---|---|---|\n+| fileName | string | the name of image |\n+\n+##### Sample Response the name of file save success\n+```json\n+{\n+  \"imageName\": \"1505789329number-1.png\"","path":"docs/api-references/uploadimage.md","position":30,"original_position":30,"commit_id":"b6982ab5a8973ca7b43eec103974f7f5c1650cf9","original_commit_id":"b6982ab5a8973ca7b43eec103974f7f5c1650cf9","user":{"login":"at-vietpham","id":16131595,"avatar_url":"https://avatars2.githubusercontent.com/u/16131595?v=4","gravatar_id":"","url":"https://api.github.com/users/at-vietpham","html_url":"https://github.com/at-vietpham","followers_url":"https://api.github.com/users/at-vietpham/followers","following_url":"https://api.github.com/users/at-vietpham/following{/other_user}","gists_url":"https://api.github.com/users/at-vietpham/gists{/gist_id}","starred_url":"https://api.github.com/users/at-vietpham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-vietpham/subscriptions","organizations_url":"https://api.github.com/users/at-vietpham/orgs","repos_url":"https://api.github.com/users/at-vietpham/repos","events_url":"https://api.github.com/users/at-vietpham/events{/privacy}","received_events_url":"https://api.github.com/users/at-vietpham/received_events","type":"User","site_admin":false},"body":"Should be used `snake_case`.","created_at":"2017-09-21T01:30:14Z","updated_at":"2017-09-21T01:34:21Z","html_url":"https://github.com/AT-PHPIntership/food-market-order/pull/227#discussion_r140131639","pull_request_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls/227","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls/comments/140131639"},"html":{"href":"https://github.com/AT-PHPIntership/food-market-order/pull/227#discussion_r140131639"},"pull_request":{"href":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls/227"}}},"pull_request":{"url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls/227","id":141995126,"html_url":"https://github.com/AT-PHPIntership/food-market-order/pull/227","diff_url":"https://github.com/AT-PHPIntership/food-market-order/pull/227.diff","patch_url":"https://github.com/AT-PHPIntership/food-market-order/pull/227.patch","issue_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/issues/227","number":227,"state":"open","locked":false,"title":"api-upload-image-doc","user":{"login":"at-dungvan","id":11406553,"avatar_url":"https://avatars2.githubusercontent.com/u/11406553?v=4","gravatar_id":"","url":"https://api.github.com/users/at-dungvan","html_url":"https://github.com/at-dungvan","followers_url":"https://api.github.com/users/at-dungvan/followers","following_url":"https://api.github.com/users/at-dungvan/following{/other_user}","gists_url":"https://api.github.com/users/at-dungvan/gists{/gist_id}","starred_url":"https://api.github.com/users/at-dungvan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-dungvan/subscriptions","organizations_url":"https://api.github.com/users/at-dungvan/orgs","repos_url":"https://api.github.com/users/at-dungvan/repos","events_url":"https://api.github.com/users/at-dungvan/events{/privacy}","received_events_url":"https://api.github.com/users/at-dungvan/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-20T02:02:52Z","updated_at":"2017-09-21T01:34:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e154ba680459035058bd69a8bbcbf249728e95dd","assignee":{"login":"at-vietpham","id":16131595,"avatar_url":"https://avatars2.githubusercontent.com/u/16131595?v=4","gravatar_id":"","url":"https://api.github.com/users/at-vietpham","html_url":"https://github.com/at-vietpham","followers_url":"https://api.github.com/users/at-vietpham/followers","following_url":"https://api.github.com/users/at-vietpham/following{/other_user}","gists_url":"https://api.github.com/users/at-vietpham/gists{/gist_id}","starred_url":"https://api.github.com/users/at-vietpham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-vietpham/subscriptions","organizations_url":"https://api.github.com/users/at-vietpham/orgs","repos_url":"https://api.github.com/users/at-vietpham/repos","events_url":"https://api.github.com/users/at-vietpham/events{/privacy}","received_events_url":"https://api.github.com/users/at-vietpham/received_events","type":"User","site_admin":false},"assignees":[{"login":"at-vietpham","id":16131595,"avatar_url":"https://avatars2.githubusercontent.com/u/16131595?v=4","gravatar_id":"","url":"https://api.github.com/users/at-vietpham","html_url":"https://github.com/at-vietpham","followers_url":"https://api.github.com/users/at-vietpham/followers","following_url":"https://api.github.com/users/at-vietpham/following{/other_user}","gists_url":"https://api.github.com/users/at-vietpham/gists{/gist_id}","starred_url":"https://api.github.com/users/at-vietpham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at-vietpham/subscriptions","organizations_url":"https://api.github.com/users/at-vietpham/orgs","repos_url":"https://api.github.com/users/at-vietpham/repos","events_url":"https://api.github.com/users/at-vietpham/events{/privacy}","received_events_url":"https://api.github.com/users/at-vietpham/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls/227/commits","review_comments_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls/227/comments","review_comment_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/issues/227/comments","statuses_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/statuses/b6982ab5a8973ca7b43eec103974f7f5c1650cf9","head":{"label":"AT-PHPIntership:api-upload-image-docs","ref":"api-upload-image-docs","sha":"b6982ab5a8973ca7b43eec103974f7f5c1650cf9","user":{"login":"AT-PHPIntership","id":17865237,"avatar_url":"https://avatars1.githubusercontent.com/u/17865237?v=4","gravatar_id":"","url":"https://api.github.com/users/AT-PHPIntership","html_url":"https://github.com/AT-PHPIntership","followers_url":"https://api.github.com/users/AT-PHPIntership/followers","following_url":"https://api.github.com/users/AT-PHPIntership/following{/other_user}","gists_url":"https://api.github.com/users/AT-PHPIntership/gists{/gist_id}","starred_url":"https://api.github.com/users/AT-PHPIntership/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AT-PHPIntership/subscriptions","organizations_url":"https://api.github.com/users/AT-PHPIntership/orgs","repos_url":"https://api.github.com/users/AT-PHPIntership/repos","events_url":"https://api.github.com/users/AT-PHPIntership/events{/privacy}","received_events_url":"https://api.github.com/users/AT-PHPIntership/received_events","type":"Organization","site_admin":false},"repo":{"id":97444586,"name":"food-market-order","full_name":"AT-PHPIntership/food-market-order","owner":{"login":"AT-PHPIntership","id":17865237,"avatar_url":"https://avatars1.githubusercontent.com/u/17865237?v=4","gravatar_id":"","url":"https://api.github.com/users/AT-PHPIntership","html_url":"https://github.com/AT-PHPIntership","followers_url":"https://api.github.com/users/AT-PHPIntership/followers","following_url":"https://api.github.com/users/AT-PHPIntership/following{/other_user}","gists_url":"https://api.github.com/users/AT-PHPIntership/gists{/gist_id}","starred_url":"https://api.github.com/users/AT-PHPIntership/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AT-PHPIntership/subscriptions","organizations_url":"https://api.github.com/users/AT-PHPIntership/orgs","repos_url":"https://api.github.com/users/AT-PHPIntership/repos","events_url":"https://api.github.com/users/AT-PHPIntership/events{/privacy}","received_events_url":"https://api.github.com/users/AT-PHPIntership/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AT-PHPIntership/food-market-order","description":null,"fork":false,"url":"https://api.github.com/repos/AT-PHPIntership/food-market-order","forks_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/forks","keys_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/teams","hooks_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/hooks","issue_events_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/issues/events{/number}","events_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/events","assignees_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/assignees{/user}","branches_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/branches{/branch}","tags_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/tags","blobs_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/git/refs{/sha}","trees_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/statuses/{sha}","languages_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/languages","stargazers_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/stargazers","contributors_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/contributors","subscribers_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/subscribers","subscription_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/subscription","commits_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/commits{/sha}","git_commits_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/git/commits{/sha}","comments_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/comments{/number}","issue_comment_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/issues/comments{/number}","contents_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/contents/{+path}","compare_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/merges","archive_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/downloads","issues_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/issues{/number}","pulls_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls{/number}","milestones_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/milestones{/number}","notifications_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/labels{/name}","releases_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/releases{/id}","deployments_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/deployments","created_at":"2017-07-17T06:54:28Z","updated_at":"2017-08-22T08:20:26Z","pushed_at":"2017-09-21T01:16:44Z","git_url":"git://github.com/AT-PHPIntership/food-market-order.git","ssh_url":"git@github.com:AT-PHPIntership/food-market-order.git","clone_url":"https://github.com/AT-PHPIntership/food-market-order.git","svn_url":"https://github.com/AT-PHPIntership/food-market-order","homepage":null,"size":6636,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":31,"forks":0,"open_issues":31,"watchers":0,"default_branch":"master"}},"base":{"label":"AT-PHPIntership:master","ref":"master","sha":"10844cb7e48e6c158106e303f7d58f67b314a48f","user":{"login":"AT-PHPIntership","id":17865237,"avatar_url":"https://avatars1.githubusercontent.com/u/17865237?v=4","gravatar_id":"","url":"https://api.github.com/users/AT-PHPIntership","html_url":"https://github.com/AT-PHPIntership","followers_url":"https://api.github.com/users/AT-PHPIntership/followers","following_url":"https://api.github.com/users/AT-PHPIntership/following{/other_user}","gists_url":"https://api.github.com/users/AT-PHPIntership/gists{/gist_id}","starred_url":"https://api.github.com/users/AT-PHPIntership/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AT-PHPIntership/subscriptions","organizations_url":"https://api.github.com/users/AT-PHPIntership/orgs","repos_url":"https://api.github.com/users/AT-PHPIntership/repos","events_url":"https://api.github.com/users/AT-PHPIntership/events{/privacy}","received_events_url":"https://api.github.com/users/AT-PHPIntership/received_events","type":"Organization","site_admin":false},"repo":{"id":97444586,"name":"food-market-order","full_name":"AT-PHPIntership/food-market-order","owner":{"login":"AT-PHPIntership","id":17865237,"avatar_url":"https://avatars1.githubusercontent.com/u/17865237?v=4","gravatar_id":"","url":"https://api.github.com/users/AT-PHPIntership","html_url":"https://github.com/AT-PHPIntership","followers_url":"https://api.github.com/users/AT-PHPIntership/followers","following_url":"https://api.github.com/users/AT-PHPIntership/following{/other_user}","gists_url":"https://api.github.com/users/AT-PHPIntership/gists{/gist_id}","starred_url":"https://api.github.com/users/AT-PHPIntership/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AT-PHPIntership/subscriptions","organizations_url":"https://api.github.com/users/AT-PHPIntership/orgs","repos_url":"https://api.github.com/users/AT-PHPIntership/repos","events_url":"https://api.github.com/users/AT-PHPIntership/events{/privacy}","received_events_url":"https://api.github.com/users/AT-PHPIntership/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AT-PHPIntership/food-market-order","description":null,"fork":false,"url":"https://api.github.com/repos/AT-PHPIntership/food-market-order","forks_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/forks","keys_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/teams","hooks_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/hooks","issue_events_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/issues/events{/number}","events_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/events","assignees_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/assignees{/user}","branches_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/branches{/branch}","tags_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/tags","blobs_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/git/refs{/sha}","trees_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/statuses/{sha}","languages_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/languages","stargazers_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/stargazers","contributors_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/contributors","subscribers_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/subscribers","subscription_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/subscription","commits_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/commits{/sha}","git_commits_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/git/commits{/sha}","comments_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/comments{/number}","issue_comment_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/issues/comments{/number}","contents_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/contents/{+path}","compare_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/merges","archive_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/downloads","issues_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/issues{/number}","pulls_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls{/number}","milestones_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/milestones{/number}","notifications_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/labels{/name}","releases_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/releases{/id}","deployments_url":"https://api.github.com/repos/AT-PHPIntership/food-market-order/deployments","created_at":"2017-07-17T06:54:28Z","updated_at":"2017-08-22T08:20:26Z","pushed_at":"2017-09-21T01:16:44Z","git_url":"git://github.com/AT-PHPIntership/food-market-order.git","ssh_url":"git@github.com:AT-PHPIntership/food-market-order.git","clone_url":"https://github.com/AT-PHPIntership/food-market-order.git","svn_url":"https://github.com/AT-PHPIntership/food-market-order","homepage":null,"size":6636,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":31,"forks":0,"open_issues":31,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls/227"},"html":{"href":"https://github.com/AT-PHPIntership/food-market-order/pull/227"},"issue":{"href":"https://api.github.com/repos/AT-PHPIntership/food-market-order/issues/227"},"comments":{"href":"https://api.github.com/repos/AT-PHPIntership/food-market-order/issues/227/comments"},"review_comments":{"href":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls/227/comments"},"review_comment":{"href":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AT-PHPIntership/food-market-order/pulls/227/commits"},"statuses":{"href":"https://api.github.com/repos/AT-PHPIntership/food-market-order/statuses/b6982ab5a8973ca7b43eec103974f7f5c1650cf9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"at-vietpham"}}