{"action":"created","comment":{"url":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls/comments/34415496","id":34415496,"diff_hunk":"@@ -27,6 +27,21 @@ def show\n           head(:not_found)\n         end\n       end\n+\n+      def create\n+        mission = Mission.new(mission_attrs)\n+        if mission.save\n+          render({ json: mission.to_json({ root: true }) })\n+        else\n+          render({ json: { foo: \"bar\" }, status: 400 })","path":"app/controllers/api/v1/missions_controller.rb","position":10,"original_position":10,"commit_id":"09a3a316a77d0b7b5decf38e920fe4cca6beb267","original_commit_id":"09a3a316a77d0b7b5decf38e920fe4cca6beb267","user":{"login":"stevenweber","id":96204,"avatar_url":"https://avatars.githubusercontent.com/u/96204?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenweber","html_url":"https://github.com/stevenweber","followers_url":"https://api.github.com/users/stevenweber/followers","following_url":"https://api.github.com/users/stevenweber/following{/other_user}","gists_url":"https://api.github.com/users/stevenweber/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenweber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenweber/subscriptions","organizations_url":"https://api.github.com/users/stevenweber/orgs","repos_url":"https://api.github.com/users/stevenweber/repos","events_url":"https://api.github.com/users/stevenweber/events{/privacy}","received_events_url":"https://api.github.com/users/stevenweber/received_events","type":"User","site_admin":false},"body":"Is `foo` code for `error`?","created_at":"2015-07-11T19:19:49Z","updated_at":"2015-07-11T19:19:49Z","html_url":"https://github.com/agile-direction/agile-direction-api/pull/5#discussion_r34415496","pull_request_url":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls/comments/34415496"},"html":{"href":"https://github.com/agile-direction/agile-direction-api/pull/5#discussion_r34415496"},"pull_request":{"href":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls/5","id":37427981,"html_url":"https://github.com/agile-direction/agile-direction-api/pull/5","diff_url":"https://github.com/agile-direction/agile-direction-api/pull/5.diff","patch_url":"https://github.com/agile-direction/agile-direction-api/pull/5.patch","issue_url":"https://api.github.com/repos/agile-direction/agile-direction-api/issues/5","number":5,"state":"open","locked":false,"title":"Mission Create Form","user":{"login":"gmassanek","id":343891,"avatar_url":"https://avatars.githubusercontent.com/u/343891?v=3","gravatar_id":"","url":"https://api.github.com/users/gmassanek","html_url":"https://github.com/gmassanek","followers_url":"https://api.github.com/users/gmassanek/followers","following_url":"https://api.github.com/users/gmassanek/following{/other_user}","gists_url":"https://api.github.com/users/gmassanek/gists{/gist_id}","starred_url":"https://api.github.com/users/gmassanek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmassanek/subscriptions","organizations_url":"https://api.github.com/users/gmassanek/orgs","repos_url":"https://api.github.com/users/gmassanek/repos","events_url":"https://api.github.com/users/gmassanek/events{/privacy}","received_events_url":"https://api.github.com/users/gmassanek/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-11T04:21:03Z","updated_at":"2015-07-11T19:19:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"449eb032257e9c2792d13e3c742ab6767fbb666c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls/5/commits","review_comments_url":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls/5/comments","review_comment_url":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/agile-direction/agile-direction-api/issues/5/comments","statuses_url":"https://api.github.com/repos/agile-direction/agile-direction-api/statuses/09a3a316a77d0b7b5decf38e920fe4cca6beb267","head":{"label":"agile-direction:some-forms","ref":"some-forms","sha":"09a3a316a77d0b7b5decf38e920fe4cca6beb267","user":{"login":"agile-direction","id":12780550,"avatar_url":"https://avatars.githubusercontent.com/u/12780550?v=3","gravatar_id":"","url":"https://api.github.com/users/agile-direction","html_url":"https://github.com/agile-direction","followers_url":"https://api.github.com/users/agile-direction/followers","following_url":"https://api.github.com/users/agile-direction/following{/other_user}","gists_url":"https://api.github.com/users/agile-direction/gists{/gist_id}","starred_url":"https://api.github.com/users/agile-direction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agile-direction/subscriptions","organizations_url":"https://api.github.com/users/agile-direction/orgs","repos_url":"https://api.github.com/users/agile-direction/repos","events_url":"https://api.github.com/users/agile-direction/events{/privacy}","received_events_url":"https://api.github.com/users/agile-direction/received_events","type":"Organization","site_admin":false},"repo":{"id":36991113,"name":"agile-direction-api","full_name":"agile-direction/agile-direction-api","owner":{"login":"agile-direction","id":12780550,"avatar_url":"https://avatars.githubusercontent.com/u/12780550?v=3","gravatar_id":"","url":"https://api.github.com/users/agile-direction","html_url":"https://github.com/agile-direction","followers_url":"https://api.github.com/users/agile-direction/followers","following_url":"https://api.github.com/users/agile-direction/following{/other_user}","gists_url":"https://api.github.com/users/agile-direction/gists{/gist_id}","starred_url":"https://api.github.com/users/agile-direction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agile-direction/subscriptions","organizations_url":"https://api.github.com/users/agile-direction/orgs","repos_url":"https://api.github.com/users/agile-direction/repos","events_url":"https://api.github.com/users/agile-direction/events{/privacy}","received_events_url":"https://api.github.com/users/agile-direction/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/agile-direction/agile-direction-api","description":"","fork":false,"url":"https://api.github.com/repos/agile-direction/agile-direction-api","forks_url":"https://api.github.com/repos/agile-direction/agile-direction-api/forks","keys_url":"https://api.github.com/repos/agile-direction/agile-direction-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agile-direction/agile-direction-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agile-direction/agile-direction-api/teams","hooks_url":"https://api.github.com/repos/agile-direction/agile-direction-api/hooks","issue_events_url":"https://api.github.com/repos/agile-direction/agile-direction-api/issues/events{/number}","events_url":"https://api.github.com/repos/agile-direction/agile-direction-api/events","assignees_url":"https://api.github.com/repos/agile-direction/agile-direction-api/assignees{/user}","branches_url":"https://api.github.com/repos/agile-direction/agile-direction-api/branches{/branch}","tags_url":"https://api.github.com/repos/agile-direction/agile-direction-api/tags","blobs_url":"https://api.github.com/repos/agile-direction/agile-direction-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agile-direction/agile-direction-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agile-direction/agile-direction-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/agile-direction/agile-direction-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agile-direction/agile-direction-api/statuses/{sha}","languages_url":"https://api.github.com/repos/agile-direction/agile-direction-api/languages","stargazers_url":"https://api.github.com/repos/agile-direction/agile-direction-api/stargazers","contributors_url":"https://api.github.com/repos/agile-direction/agile-direction-api/contributors","subscribers_url":"https://api.github.com/repos/agile-direction/agile-direction-api/subscribers","subscription_url":"https://api.github.com/repos/agile-direction/agile-direction-api/subscription","commits_url":"https://api.github.com/repos/agile-direction/agile-direction-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/agile-direction/agile-direction-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/agile-direction/agile-direction-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/agile-direction/agile-direction-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/agile-direction/agile-direction-api/contents/{+path}","compare_url":"https://api.github.com/repos/agile-direction/agile-direction-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agile-direction/agile-direction-api/merges","archive_url":"https://api.github.com/repos/agile-direction/agile-direction-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agile-direction/agile-direction-api/downloads","issues_url":"https://api.github.com/repos/agile-direction/agile-direction-api/issues{/number}","pulls_url":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls{/number}","milestones_url":"https://api.github.com/repos/agile-direction/agile-direction-api/milestones{/number}","notifications_url":"https://api.github.com/repos/agile-direction/agile-direction-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agile-direction/agile-direction-api/labels{/name}","releases_url":"https://api.github.com/repos/agile-direction/agile-direction-api/releases{/id}","created_at":"2015-06-06T18:42:14Z","updated_at":"2015-06-07T02:17:55Z","pushed_at":"2015-06-11T07:14:54Z","git_url":"git://github.com/agile-direction/agile-direction-api.git","ssh_url":"git@github.com:agile-direction/agile-direction-api.git","clone_url":"https://github.com/agile-direction/agile-direction-api.git","svn_url":"https://github.com/agile-direction/agile-direction-api","homepage":null,"size":496,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"agile-direction:master","ref":"master","sha":"fdf33e7ee6035ac474e39d8d343e14ec9e3ef1cb","user":{"login":"agile-direction","id":12780550,"avatar_url":"https://avatars.githubusercontent.com/u/12780550?v=3","gravatar_id":"","url":"https://api.github.com/users/agile-direction","html_url":"https://github.com/agile-direction","followers_url":"https://api.github.com/users/agile-direction/followers","following_url":"https://api.github.com/users/agile-direction/following{/other_user}","gists_url":"https://api.github.com/users/agile-direction/gists{/gist_id}","starred_url":"https://api.github.com/users/agile-direction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agile-direction/subscriptions","organizations_url":"https://api.github.com/users/agile-direction/orgs","repos_url":"https://api.github.com/users/agile-direction/repos","events_url":"https://api.github.com/users/agile-direction/events{/privacy}","received_events_url":"https://api.github.com/users/agile-direction/received_events","type":"Organization","site_admin":false},"repo":{"id":36991113,"name":"agile-direction-api","full_name":"agile-direction/agile-direction-api","owner":{"login":"agile-direction","id":12780550,"avatar_url":"https://avatars.githubusercontent.com/u/12780550?v=3","gravatar_id":"","url":"https://api.github.com/users/agile-direction","html_url":"https://github.com/agile-direction","followers_url":"https://api.github.com/users/agile-direction/followers","following_url":"https://api.github.com/users/agile-direction/following{/other_user}","gists_url":"https://api.github.com/users/agile-direction/gists{/gist_id}","starred_url":"https://api.github.com/users/agile-direction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agile-direction/subscriptions","organizations_url":"https://api.github.com/users/agile-direction/orgs","repos_url":"https://api.github.com/users/agile-direction/repos","events_url":"https://api.github.com/users/agile-direction/events{/privacy}","received_events_url":"https://api.github.com/users/agile-direction/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/agile-direction/agile-direction-api","description":"","fork":false,"url":"https://api.github.com/repos/agile-direction/agile-direction-api","forks_url":"https://api.github.com/repos/agile-direction/agile-direction-api/forks","keys_url":"https://api.github.com/repos/agile-direction/agile-direction-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agile-direction/agile-direction-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agile-direction/agile-direction-api/teams","hooks_url":"https://api.github.com/repos/agile-direction/agile-direction-api/hooks","issue_events_url":"https://api.github.com/repos/agile-direction/agile-direction-api/issues/events{/number}","events_url":"https://api.github.com/repos/agile-direction/agile-direction-api/events","assignees_url":"https://api.github.com/repos/agile-direction/agile-direction-api/assignees{/user}","branches_url":"https://api.github.com/repos/agile-direction/agile-direction-api/branches{/branch}","tags_url":"https://api.github.com/repos/agile-direction/agile-direction-api/tags","blobs_url":"https://api.github.com/repos/agile-direction/agile-direction-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agile-direction/agile-direction-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agile-direction/agile-direction-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/agile-direction/agile-direction-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agile-direction/agile-direction-api/statuses/{sha}","languages_url":"https://api.github.com/repos/agile-direction/agile-direction-api/languages","stargazers_url":"https://api.github.com/repos/agile-direction/agile-direction-api/stargazers","contributors_url":"https://api.github.com/repos/agile-direction/agile-direction-api/contributors","subscribers_url":"https://api.github.com/repos/agile-direction/agile-direction-api/subscribers","subscription_url":"https://api.github.com/repos/agile-direction/agile-direction-api/subscription","commits_url":"https://api.github.com/repos/agile-direction/agile-direction-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/agile-direction/agile-direction-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/agile-direction/agile-direction-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/agile-direction/agile-direction-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/agile-direction/agile-direction-api/contents/{+path}","compare_url":"https://api.github.com/repos/agile-direction/agile-direction-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agile-direction/agile-direction-api/merges","archive_url":"https://api.github.com/repos/agile-direction/agile-direction-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agile-direction/agile-direction-api/downloads","issues_url":"https://api.github.com/repos/agile-direction/agile-direction-api/issues{/number}","pulls_url":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls{/number}","milestones_url":"https://api.github.com/repos/agile-direction/agile-direction-api/milestones{/number}","notifications_url":"https://api.github.com/repos/agile-direction/agile-direction-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agile-direction/agile-direction-api/labels{/name}","releases_url":"https://api.github.com/repos/agile-direction/agile-direction-api/releases{/id}","created_at":"2015-06-06T18:42:14Z","updated_at":"2015-06-07T02:17:55Z","pushed_at":"2015-06-11T07:14:54Z","git_url":"git://github.com/agile-direction/agile-direction-api.git","ssh_url":"git@github.com:agile-direction/agile-direction-api.git","clone_url":"https://github.com/agile-direction/agile-direction-api.git","svn_url":"https://github.com/agile-direction/agile-direction-api","homepage":null,"size":496,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/agile-direction/agile-direction-api/pulls/5"},"html":{"href":"https://github.com/agile-direction/agile-direction-api/pull/5"},"issue":{"href":"https://api.github.com/repos/agile-direction/agile-direction-api/issues/5"},"comments":{"href":"https://api.github.com/repos/agile-direction/agile-direction-api/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/agile-direction/agile-direction-api/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/agile-direction/agile-direction-api/statuses/09a3a316a77d0b7b5decf38e920fe4cca6beb267"}}}}