{"action":"created","comment":{"url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls/comments/58336072","id":58336072,"diff_hunk":"@@ -0,0 +1,37 @@\n+<?php\n+\n+/**\n+* REST API\n+*/\n+class Controller_Api_V0_Todo extends Controller_Rest","path":"fuelphp/fuel/app/classes/controller/api/v0/todo.php","position":null,"original_position":6,"commit_id":"de973bf3cfbe455faaf88732041c6c9c2357e002","original_commit_id":"76e334461ba0eba590b9f0521499a4c7b4112760","user":{"login":"yuya-m-ms","id":17119207,"avatar_url":"https://avatars.githubusercontent.com/u/17119207?v=3","gravatar_id":"","url":"https://api.github.com/users/yuya-m-ms","html_url":"https://github.com/yuya-m-ms","followers_url":"https://api.github.com/users/yuya-m-ms/followers","following_url":"https://api.github.com/users/yuya-m-ms/following{/other_user}","gists_url":"https://api.github.com/users/yuya-m-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/yuya-m-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuya-m-ms/subscriptions","organizations_url":"https://api.github.com/users/yuya-m-ms/orgs","repos_url":"https://api.github.com/users/yuya-m-ms/repos","events_url":"https://api.github.com/users/yuya-m-ms/events{/privacy}","received_events_url":"https://api.github.com/users/yuya-m-ms/received_events","type":"User","site_admin":false},"body":"URIとDirectoryの`/vN`は明示し、旧版への移行期間はリダイレクト、その後は削除","created_at":"2016-04-04T07:16:19Z","updated_at":"2016-04-04T07:16:19Z","html_url":"https://github.com/yuya-m-ms/FuelPHP_Practice/pull/16#discussion_r58336072","pull_request_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls/comments/58336072"},"html":{"href":"https://github.com/yuya-m-ms/FuelPHP_Practice/pull/16#discussion_r58336072"},"pull_request":{"href":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls/16","id":65091143,"html_url":"https://github.com/yuya-m-ms/FuelPHP_Practice/pull/16","diff_url":"https://github.com/yuya-m-ms/FuelPHP_Practice/pull/16.diff","patch_url":"https://github.com/yuya-m-ms/FuelPHP_Practice/pull/16.patch","issue_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/issues/16","number":16,"state":"open","locked":false,"title":"Practice 3","user":{"login":"yuya-m-ms","id":17119207,"avatar_url":"https://avatars.githubusercontent.com/u/17119207?v=3","gravatar_id":"","url":"https://api.github.com/users/yuya-m-ms","html_url":"https://github.com/yuya-m-ms","followers_url":"https://api.github.com/users/yuya-m-ms/followers","following_url":"https://api.github.com/users/yuya-m-ms/following{/other_user}","gists_url":"https://api.github.com/users/yuya-m-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/yuya-m-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuya-m-ms/subscriptions","organizations_url":"https://api.github.com/users/yuya-m-ms/orgs","repos_url":"https://api.github.com/users/yuya-m-ms/repos","events_url":"https://api.github.com/users/yuya-m-ms/events{/privacy}","received_events_url":"https://api.github.com/users/yuya-m-ms/received_events","type":"User","site_admin":false},"body":"# REST API\r\nControllerのみ実装\r\n\r\n## 仕様\r\n- 共通: `/api/v0/todo`\r\n- Default Format: json\r\n  - 拡張子でも指定可能\r\n  - HEADERは無視\r\n    - (撤廃?)\r\n  - TODO: `.php`で生のORMオブジェクトが見えるのを阻止\r\n- `/item/:id`\r\n  - IDで指定\r\n  - `item` node以下に格納\r\n- `/list`\r\n  - `GET`のみ\r\n  - `list` node以下に格納\r\n  - default: `Session`からユーザーごとのIDで切り替え\r\n    - `user 0` のテストユーザーにfallback\r\n  - `/me`: 現`Session`からuser ID取得\r\n  - `/user/:id`: Authは無し\r\n- Create系はURIをLocation headerに付与\r\n\r\n### Test\r\nなし","created_at":"2016-04-04T02:55:35Z","updated_at":"2016-04-04T07:16:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fa63311d69223f147c92bc8923c8b814d3bf037","assignee":{"login":"yuya-m-ms","id":17119207,"avatar_url":"https://avatars.githubusercontent.com/u/17119207?v=3","gravatar_id":"","url":"https://api.github.com/users/yuya-m-ms","html_url":"https://github.com/yuya-m-ms","followers_url":"https://api.github.com/users/yuya-m-ms/followers","following_url":"https://api.github.com/users/yuya-m-ms/following{/other_user}","gists_url":"https://api.github.com/users/yuya-m-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/yuya-m-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuya-m-ms/subscriptions","organizations_url":"https://api.github.com/users/yuya-m-ms/orgs","repos_url":"https://api.github.com/users/yuya-m-ms/repos","events_url":"https://api.github.com/users/yuya-m-ms/events{/privacy}","received_events_url":"https://api.github.com/users/yuya-m-ms/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls/16/commits","review_comments_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls/16/comments","review_comment_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/issues/16/comments","statuses_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/statuses/de973bf3cfbe455faaf88732041c6c9c2357e002","head":{"label":"yuya-m-ms:practice-3","ref":"practice-3","sha":"de973bf3cfbe455faaf88732041c6c9c2357e002","user":{"login":"yuya-m-ms","id":17119207,"avatar_url":"https://avatars.githubusercontent.com/u/17119207?v=3","gravatar_id":"","url":"https://api.github.com/users/yuya-m-ms","html_url":"https://github.com/yuya-m-ms","followers_url":"https://api.github.com/users/yuya-m-ms/followers","following_url":"https://api.github.com/users/yuya-m-ms/following{/other_user}","gists_url":"https://api.github.com/users/yuya-m-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/yuya-m-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuya-m-ms/subscriptions","organizations_url":"https://api.github.com/users/yuya-m-ms/orgs","repos_url":"https://api.github.com/users/yuya-m-ms/repos","events_url":"https://api.github.com/users/yuya-m-ms/events{/privacy}","received_events_url":"https://api.github.com/users/yuya-m-ms/received_events","type":"User","site_admin":false},"repo":{"id":53476798,"name":"FuelPHP_Practice","full_name":"yuya-m-ms/FuelPHP_Practice","owner":{"login":"yuya-m-ms","id":17119207,"avatar_url":"https://avatars.githubusercontent.com/u/17119207?v=3","gravatar_id":"","url":"https://api.github.com/users/yuya-m-ms","html_url":"https://github.com/yuya-m-ms","followers_url":"https://api.github.com/users/yuya-m-ms/followers","following_url":"https://api.github.com/users/yuya-m-ms/following{/other_user}","gists_url":"https://api.github.com/users/yuya-m-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/yuya-m-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuya-m-ms/subscriptions","organizations_url":"https://api.github.com/users/yuya-m-ms/orgs","repos_url":"https://api.github.com/users/yuya-m-ms/repos","events_url":"https://api.github.com/users/yuya-m-ms/events{/privacy}","received_events_url":"https://api.github.com/users/yuya-m-ms/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuya-m-ms/FuelPHP_Practice","description":"エンジニア演習","fork":false,"url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice","forks_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/forks","keys_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/teams","hooks_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/hooks","issue_events_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/issues/events{/number}","events_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/events","assignees_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/assignees{/user}","branches_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/branches{/branch}","tags_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/tags","blobs_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/statuses/{sha}","languages_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/languages","stargazers_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/stargazers","contributors_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/contributors","subscribers_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/subscribers","subscription_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/subscription","commits_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/contents/{+path}","compare_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/merges","archive_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/downloads","issues_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/issues{/number}","pulls_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls{/number}","milestones_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/milestones{/number}","notifications_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/labels{/name}","releases_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/releases{/id}","deployments_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/deployments","created_at":"2016-03-09T07:17:46Z","updated_at":"2016-03-10T07:28:30Z","pushed_at":"2016-04-04T06:43:42Z","git_url":"git://github.com/yuya-m-ms/FuelPHP_Practice.git","ssh_url":"git@github.com:yuya-m-ms/FuelPHP_Practice.git","clone_url":"https://github.com/yuya-m-ms/FuelPHP_Practice.git","svn_url":"https://github.com/yuya-m-ms/FuelPHP_Practice","homepage":null,"size":767,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"yuya-m-ms:master","ref":"master","sha":"17ee874eb6367ace56b94127a1410aaee599e415","user":{"login":"yuya-m-ms","id":17119207,"avatar_url":"https://avatars.githubusercontent.com/u/17119207?v=3","gravatar_id":"","url":"https://api.github.com/users/yuya-m-ms","html_url":"https://github.com/yuya-m-ms","followers_url":"https://api.github.com/users/yuya-m-ms/followers","following_url":"https://api.github.com/users/yuya-m-ms/following{/other_user}","gists_url":"https://api.github.com/users/yuya-m-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/yuya-m-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuya-m-ms/subscriptions","organizations_url":"https://api.github.com/users/yuya-m-ms/orgs","repos_url":"https://api.github.com/users/yuya-m-ms/repos","events_url":"https://api.github.com/users/yuya-m-ms/events{/privacy}","received_events_url":"https://api.github.com/users/yuya-m-ms/received_events","type":"User","site_admin":false},"repo":{"id":53476798,"name":"FuelPHP_Practice","full_name":"yuya-m-ms/FuelPHP_Practice","owner":{"login":"yuya-m-ms","id":17119207,"avatar_url":"https://avatars.githubusercontent.com/u/17119207?v=3","gravatar_id":"","url":"https://api.github.com/users/yuya-m-ms","html_url":"https://github.com/yuya-m-ms","followers_url":"https://api.github.com/users/yuya-m-ms/followers","following_url":"https://api.github.com/users/yuya-m-ms/following{/other_user}","gists_url":"https://api.github.com/users/yuya-m-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/yuya-m-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuya-m-ms/subscriptions","organizations_url":"https://api.github.com/users/yuya-m-ms/orgs","repos_url":"https://api.github.com/users/yuya-m-ms/repos","events_url":"https://api.github.com/users/yuya-m-ms/events{/privacy}","received_events_url":"https://api.github.com/users/yuya-m-ms/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuya-m-ms/FuelPHP_Practice","description":"エンジニア演習","fork":false,"url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice","forks_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/forks","keys_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/teams","hooks_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/hooks","issue_events_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/issues/events{/number}","events_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/events","assignees_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/assignees{/user}","branches_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/branches{/branch}","tags_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/tags","blobs_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/statuses/{sha}","languages_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/languages","stargazers_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/stargazers","contributors_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/contributors","subscribers_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/subscribers","subscription_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/subscription","commits_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/contents/{+path}","compare_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/merges","archive_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/downloads","issues_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/issues{/number}","pulls_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls{/number}","milestones_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/milestones{/number}","notifications_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/labels{/name}","releases_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/releases{/id}","deployments_url":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/deployments","created_at":"2016-03-09T07:17:46Z","updated_at":"2016-03-10T07:28:30Z","pushed_at":"2016-04-04T06:43:42Z","git_url":"git://github.com/yuya-m-ms/FuelPHP_Practice.git","ssh_url":"git@github.com:yuya-m-ms/FuelPHP_Practice.git","clone_url":"https://github.com/yuya-m-ms/FuelPHP_Practice.git","svn_url":"https://github.com/yuya-m-ms/FuelPHP_Practice","homepage":null,"size":767,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls/16"},"html":{"href":"https://github.com/yuya-m-ms/FuelPHP_Practice/pull/16"},"issue":{"href":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/issues/16"},"comments":{"href":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/yuya-m-ms/FuelPHP_Practice/statuses/de973bf3cfbe455faaf88732041c6c9c2357e002"}}}}