{"action":"created","comment":{"url":"https://api.github.com/repos/maclaze/FlyingColors/pulls/comments/31705239","id":31705239,"diff_hunk":"@@ -1,38 +1,30 @@\n package controllers;\n \n-import play.*;\n-import play.libs.Json;\n-import play.mvc.*;\n-import views.html.*;\n+import play.mvc.Controller;\n \n import com.fasterxml.jackson.databind.JsonNode;\n-import com.fasterxml.jackson.databind.node.ObjectNode;\n \n-public class CompanyController extends Controller {\n \n-\tpublic static Result index() {\n-\t\treturn ok(index.render(\"Your new application is ready.\"));\n-\t}\n+public class CompanyController extends Controller {\n \n-\tpublic static Result sayHello() {\n+\t@BodyParser.Of(BodyParser.Json.class)\n+\tpublic static Result createcontrolType() {\t\t\n \t\tJsonNode json = request().body().asJson();\n-\t\tif(json == null) {","path":"BackendServices/app/controllers/CompanyController.java","position":23,"original_position":23,"commit_id":"0f5bba4694bad12d44b017aad25e05197b08caba","original_commit_id":"0f5bba4694bad12d44b017aad25e05197b08caba","user":{"login":"SruthiS","id":7632392,"avatar_url":"https://avatars.githubusercontent.com/u/7632392?v=3","gravatar_id":"","url":"https://api.github.com/users/SruthiS","html_url":"https://github.com/SruthiS","followers_url":"https://api.github.com/users/SruthiS/followers","following_url":"https://api.github.com/users/SruthiS/following{/other_user}","gists_url":"https://api.github.com/users/SruthiS/gists{/gist_id}","starred_url":"https://api.github.com/users/SruthiS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SruthiS/subscriptions","organizations_url":"https://api.github.com/users/SruthiS/orgs","repos_url":"https://api.github.com/users/SruthiS/repos","events_url":"https://api.github.com/users/SruthiS/events{/privacy}","received_events_url":"https://api.github.com/users/SruthiS/received_events","type":"User","site_admin":false},"body":"you need this condition to ensure you have json data sent. ","created_at":"2015-06-04T09:24:41Z","updated_at":"2015-06-04T09:24:41Z","html_url":"https://github.com/maclaze/FlyingColors/pull/2#discussion_r31705239","pull_request_url":"https://api.github.com/repos/maclaze/FlyingColors/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/maclaze/FlyingColors/pulls/comments/31705239"},"html":{"href":"https://github.com/maclaze/FlyingColors/pull/2#discussion_r31705239"},"pull_request":{"href":"https://api.github.com/repos/maclaze/FlyingColors/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/maclaze/FlyingColors/pulls/2","id":36585038,"html_url":"https://github.com/maclaze/FlyingColors/pull/2","diff_url":"https://github.com/maclaze/FlyingColors/pull/2.diff","patch_url":"https://github.com/maclaze/FlyingColors/pull/2.patch","issue_url":"https://api.github.com/repos/maclaze/FlyingColors/issues/2","number":2,"state":"open","locked":false,"title":"Sruthi/company","user":{"login":"SruthiS","id":7632392,"avatar_url":"https://avatars.githubusercontent.com/u/7632392?v=3","gravatar_id":"","url":"https://api.github.com/users/SruthiS","html_url":"https://github.com/SruthiS","followers_url":"https://api.github.com/users/SruthiS/followers","following_url":"https://api.github.com/users/SruthiS/following{/other_user}","gists_url":"https://api.github.com/users/SruthiS/gists{/gist_id}","starred_url":"https://api.github.com/users/SruthiS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SruthiS/subscriptions","organizations_url":"https://api.github.com/users/SruthiS/orgs","repos_url":"https://api.github.com/users/SruthiS/repos","events_url":"https://api.github.com/users/SruthiS/events{/privacy}","received_events_url":"https://api.github.com/users/SruthiS/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-31T16:36:06Z","updated_at":"2015-06-04T09:24:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7c23f0659bd2a355eeadd3ce4c8ee2a4d0734bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/maclaze/FlyingColors/pulls/2/commits","review_comments_url":"https://api.github.com/repos/maclaze/FlyingColors/pulls/2/comments","review_comment_url":"https://api.github.com/repos/maclaze/FlyingColors/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maclaze/FlyingColors/issues/2/comments","statuses_url":"https://api.github.com/repos/maclaze/FlyingColors/statuses/0f5bba4694bad12d44b017aad25e05197b08caba","head":{"label":"maclaze:sruthi/company","ref":"sruthi/company","sha":"0f5bba4694bad12d44b017aad25e05197b08caba","user":{"login":"maclaze","id":5211325,"avatar_url":"https://avatars.githubusercontent.com/u/5211325?v=3","gravatar_id":"","url":"https://api.github.com/users/maclaze","html_url":"https://github.com/maclaze","followers_url":"https://api.github.com/users/maclaze/followers","following_url":"https://api.github.com/users/maclaze/following{/other_user}","gists_url":"https://api.github.com/users/maclaze/gists{/gist_id}","starred_url":"https://api.github.com/users/maclaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maclaze/subscriptions","organizations_url":"https://api.github.com/users/maclaze/orgs","repos_url":"https://api.github.com/users/maclaze/repos","events_url":"https://api.github.com/users/maclaze/events{/privacy}","received_events_url":"https://api.github.com/users/maclaze/received_events","type":"User","site_admin":false},"repo":{"id":36433400,"name":"FlyingColors","full_name":"maclaze/FlyingColors","owner":{"login":"maclaze","id":5211325,"avatar_url":"https://avatars.githubusercontent.com/u/5211325?v=3","gravatar_id":"","url":"https://api.github.com/users/maclaze","html_url":"https://github.com/maclaze","followers_url":"https://api.github.com/users/maclaze/followers","following_url":"https://api.github.com/users/maclaze/following{/other_user}","gists_url":"https://api.github.com/users/maclaze/gists{/gist_id}","starred_url":"https://api.github.com/users/maclaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maclaze/subscriptions","organizations_url":"https://api.github.com/users/maclaze/orgs","repos_url":"https://api.github.com/users/maclaze/repos","events_url":"https://api.github.com/users/maclaze/events{/privacy}","received_events_url":"https://api.github.com/users/maclaze/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maclaze/FlyingColors","description":"","fork":false,"url":"https://api.github.com/repos/maclaze/FlyingColors","forks_url":"https://api.github.com/repos/maclaze/FlyingColors/forks","keys_url":"https://api.github.com/repos/maclaze/FlyingColors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maclaze/FlyingColors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maclaze/FlyingColors/teams","hooks_url":"https://api.github.com/repos/maclaze/FlyingColors/hooks","issue_events_url":"https://api.github.com/repos/maclaze/FlyingColors/issues/events{/number}","events_url":"https://api.github.com/repos/maclaze/FlyingColors/events","assignees_url":"https://api.github.com/repos/maclaze/FlyingColors/assignees{/user}","branches_url":"https://api.github.com/repos/maclaze/FlyingColors/branches{/branch}","tags_url":"https://api.github.com/repos/maclaze/FlyingColors/tags","blobs_url":"https://api.github.com/repos/maclaze/FlyingColors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maclaze/FlyingColors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maclaze/FlyingColors/git/refs{/sha}","trees_url":"https://api.github.com/repos/maclaze/FlyingColors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maclaze/FlyingColors/statuses/{sha}","languages_url":"https://api.github.com/repos/maclaze/FlyingColors/languages","stargazers_url":"https://api.github.com/repos/maclaze/FlyingColors/stargazers","contributors_url":"https://api.github.com/repos/maclaze/FlyingColors/contributors","subscribers_url":"https://api.github.com/repos/maclaze/FlyingColors/subscribers","subscription_url":"https://api.github.com/repos/maclaze/FlyingColors/subscription","commits_url":"https://api.github.com/repos/maclaze/FlyingColors/commits{/sha}","git_commits_url":"https://api.github.com/repos/maclaze/FlyingColors/git/commits{/sha}","comments_url":"https://api.github.com/repos/maclaze/FlyingColors/comments{/number}","issue_comment_url":"https://api.github.com/repos/maclaze/FlyingColors/issues/comments{/number}","contents_url":"https://api.github.com/repos/maclaze/FlyingColors/contents/{+path}","compare_url":"https://api.github.com/repos/maclaze/FlyingColors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maclaze/FlyingColors/merges","archive_url":"https://api.github.com/repos/maclaze/FlyingColors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maclaze/FlyingColors/downloads","issues_url":"https://api.github.com/repos/maclaze/FlyingColors/issues{/number}","pulls_url":"https://api.github.com/repos/maclaze/FlyingColors/pulls{/number}","milestones_url":"https://api.github.com/repos/maclaze/FlyingColors/milestones{/number}","notifications_url":"https://api.github.com/repos/maclaze/FlyingColors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maclaze/FlyingColors/labels{/name}","releases_url":"https://api.github.com/repos/maclaze/FlyingColors/releases{/id}","created_at":"2015-05-28T11:15:46Z","updated_at":"2015-05-28T11:22:15Z","pushed_at":"2015-05-31T16:36:07Z","git_url":"git://github.com/maclaze/FlyingColors.git","ssh_url":"git@github.com:maclaze/FlyingColors.git","clone_url":"https://github.com/maclaze/FlyingColors.git","svn_url":"https://github.com/maclaze/FlyingColors","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"maclaze:master","ref":"master","sha":"2d1173ff762fcc758bec07626768f02c5cbd0032","user":{"login":"maclaze","id":5211325,"avatar_url":"https://avatars.githubusercontent.com/u/5211325?v=3","gravatar_id":"","url":"https://api.github.com/users/maclaze","html_url":"https://github.com/maclaze","followers_url":"https://api.github.com/users/maclaze/followers","following_url":"https://api.github.com/users/maclaze/following{/other_user}","gists_url":"https://api.github.com/users/maclaze/gists{/gist_id}","starred_url":"https://api.github.com/users/maclaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maclaze/subscriptions","organizations_url":"https://api.github.com/users/maclaze/orgs","repos_url":"https://api.github.com/users/maclaze/repos","events_url":"https://api.github.com/users/maclaze/events{/privacy}","received_events_url":"https://api.github.com/users/maclaze/received_events","type":"User","site_admin":false},"repo":{"id":36433400,"name":"FlyingColors","full_name":"maclaze/FlyingColors","owner":{"login":"maclaze","id":5211325,"avatar_url":"https://avatars.githubusercontent.com/u/5211325?v=3","gravatar_id":"","url":"https://api.github.com/users/maclaze","html_url":"https://github.com/maclaze","followers_url":"https://api.github.com/users/maclaze/followers","following_url":"https://api.github.com/users/maclaze/following{/other_user}","gists_url":"https://api.github.com/users/maclaze/gists{/gist_id}","starred_url":"https://api.github.com/users/maclaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maclaze/subscriptions","organizations_url":"https://api.github.com/users/maclaze/orgs","repos_url":"https://api.github.com/users/maclaze/repos","events_url":"https://api.github.com/users/maclaze/events{/privacy}","received_events_url":"https://api.github.com/users/maclaze/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maclaze/FlyingColors","description":"","fork":false,"url":"https://api.github.com/repos/maclaze/FlyingColors","forks_url":"https://api.github.com/repos/maclaze/FlyingColors/forks","keys_url":"https://api.github.com/repos/maclaze/FlyingColors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maclaze/FlyingColors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maclaze/FlyingColors/teams","hooks_url":"https://api.github.com/repos/maclaze/FlyingColors/hooks","issue_events_url":"https://api.github.com/repos/maclaze/FlyingColors/issues/events{/number}","events_url":"https://api.github.com/repos/maclaze/FlyingColors/events","assignees_url":"https://api.github.com/repos/maclaze/FlyingColors/assignees{/user}","branches_url":"https://api.github.com/repos/maclaze/FlyingColors/branches{/branch}","tags_url":"https://api.github.com/repos/maclaze/FlyingColors/tags","blobs_url":"https://api.github.com/repos/maclaze/FlyingColors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maclaze/FlyingColors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maclaze/FlyingColors/git/refs{/sha}","trees_url":"https://api.github.com/repos/maclaze/FlyingColors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maclaze/FlyingColors/statuses/{sha}","languages_url":"https://api.github.com/repos/maclaze/FlyingColors/languages","stargazers_url":"https://api.github.com/repos/maclaze/FlyingColors/stargazers","contributors_url":"https://api.github.com/repos/maclaze/FlyingColors/contributors","subscribers_url":"https://api.github.com/repos/maclaze/FlyingColors/subscribers","subscription_url":"https://api.github.com/repos/maclaze/FlyingColors/subscription","commits_url":"https://api.github.com/repos/maclaze/FlyingColors/commits{/sha}","git_commits_url":"https://api.github.com/repos/maclaze/FlyingColors/git/commits{/sha}","comments_url":"https://api.github.com/repos/maclaze/FlyingColors/comments{/number}","issue_comment_url":"https://api.github.com/repos/maclaze/FlyingColors/issues/comments{/number}","contents_url":"https://api.github.com/repos/maclaze/FlyingColors/contents/{+path}","compare_url":"https://api.github.com/repos/maclaze/FlyingColors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maclaze/FlyingColors/merges","archive_url":"https://api.github.com/repos/maclaze/FlyingColors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maclaze/FlyingColors/downloads","issues_url":"https://api.github.com/repos/maclaze/FlyingColors/issues{/number}","pulls_url":"https://api.github.com/repos/maclaze/FlyingColors/pulls{/number}","milestones_url":"https://api.github.com/repos/maclaze/FlyingColors/milestones{/number}","notifications_url":"https://api.github.com/repos/maclaze/FlyingColors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maclaze/FlyingColors/labels{/name}","releases_url":"https://api.github.com/repos/maclaze/FlyingColors/releases{/id}","created_at":"2015-05-28T11:15:46Z","updated_at":"2015-05-28T11:22:15Z","pushed_at":"2015-05-31T16:36:07Z","git_url":"git://github.com/maclaze/FlyingColors.git","ssh_url":"git@github.com:maclaze/FlyingColors.git","clone_url":"https://github.com/maclaze/FlyingColors.git","svn_url":"https://github.com/maclaze/FlyingColors","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maclaze/FlyingColors/pulls/2"},"html":{"href":"https://github.com/maclaze/FlyingColors/pull/2"},"issue":{"href":"https://api.github.com/repos/maclaze/FlyingColors/issues/2"},"comments":{"href":"https://api.github.com/repos/maclaze/FlyingColors/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/maclaze/FlyingColors/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/maclaze/FlyingColors/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maclaze/FlyingColors/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/maclaze/FlyingColors/statuses/0f5bba4694bad12d44b017aad25e05197b08caba"}}}}