{"action":"created","issue":{"url":"https://api.github.com/repos/andytsai-shaven/project-boomer/issues/15","labels_url":"https://api.github.com/repos/andytsai-shaven/project-boomer/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/andytsai-shaven/project-boomer/issues/15/comments","events_url":"https://api.github.com/repos/andytsai-shaven/project-boomer/issues/15/events","html_url":"https://github.com/andytsai-shaven/project-boomer/issues/15","id":121501753,"number":15,"title":"Wrong key in API response of creating node to workflow.","user":{"login":"andytsai-shaven","id":6449173,"avatar_url":"https://avatars.githubusercontent.com/u/6449173?v=3","gravatar_id":"","url":"https://api.github.com/users/andytsai-shaven","html_url":"https://github.com/andytsai-shaven","followers_url":"https://api.github.com/users/andytsai-shaven/followers","following_url":"https://api.github.com/users/andytsai-shaven/following{/other_user}","gists_url":"https://api.github.com/users/andytsai-shaven/gists{/gist_id}","starred_url":"https://api.github.com/users/andytsai-shaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andytsai-shaven/subscriptions","organizations_url":"https://api.github.com/users/andytsai-shaven/orgs","repos_url":"https://api.github.com/users/andytsai-shaven/repos","events_url":"https://api.github.com/users/andytsai-shaven/events{/privacy}","received_events_url":"https://api.github.com/users/andytsai-shaven/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/andytsai-shaven/project-boomer/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-10T14:45:54Z","updated_at":"2015-12-11T04:39:22Z","closed_at":"2015-12-11T04:39:22Z","body":"```php\r\npublic function store($workflowId, Request $request)\r\n{\r\n    $workflow = Workflow::findOrFail($workflowId)\r\n        ->nodes()\r\n        ->create([\r\n            'order' => $request->order,\r\n            'title' => $request->title\r\n        ]);\r\n\r\n    return response()->json(compact('workflow'));\r\n}\r\n```\r\n\r\nShould be change to\r\n\r\n```php\r\npublic function store($workflowId, Request $request)\r\n{\r\n    $node = Workflow::findOrFail($workflowId)\r\n        ->nodes()\r\n        ->create([\r\n            'order' => $request->order,\r\n            'title' => $request->title\r\n        ]);\r\n\r\n    return response()->json(compact('node'));\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/andytsai-shaven/project-boomer/issues/comments/163838013","html_url":"https://github.com/andytsai-shaven/project-boomer/issues/15#issuecomment-163838013","issue_url":"https://api.github.com/repos/andytsai-shaven/project-boomer/issues/15","id":163838013,"user":{"login":"andytsai-shaven","id":6449173,"avatar_url":"https://avatars.githubusercontent.com/u/6449173?v=3","gravatar_id":"","url":"https://api.github.com/users/andytsai-shaven","html_url":"https://github.com/andytsai-shaven","followers_url":"https://api.github.com/users/andytsai-shaven/followers","following_url":"https://api.github.com/users/andytsai-shaven/following{/other_user}","gists_url":"https://api.github.com/users/andytsai-shaven/gists{/gist_id}","starred_url":"https://api.github.com/users/andytsai-shaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andytsai-shaven/subscriptions","organizations_url":"https://api.github.com/users/andytsai-shaven/orgs","repos_url":"https://api.github.com/users/andytsai-shaven/repos","events_url":"https://api.github.com/users/andytsai-shaven/events{/privacy}","received_events_url":"https://api.github.com/users/andytsai-shaven/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T04:39:22Z","updated_at":"2015-12-11T04:39:22Z","body":"a013416231634a492b5a1f756184cfaee854bc9b"}}