{"action":"created","comment":{"url":"https://api.github.com/repos/nodesagency/blog/pulls/comments/87805807","pull_request_review_id":8401437,"id":87805807,"diff_hunk":"@@ -0,0 +1,368 @@\n+---\n+title: 6 simple steps to get your first Vapor JSON response\n+date: 2016-11-08 12:42:00\n+tags: vapor,setup\n+authorId: olha\n+categories:\n+- Vapor\n+---\n+\n+6 simple steps to setup your first Vapor JSON response. We will cover the initial setup and how to make both POST and GET with controllers and models. \n+\n+This tutorial will assume that you already have installed [Vapor](https://vapor.github.io/documentation/getting-started/install-swift-3-macos.html) and [Xcode 8](https://developer.apple.com/xcode/) and are familiar with Swift 3.\n+\n+### 1. Creating your project\n+\n+Now open your terminal and cd into the place you want your project.\n+\n+Now run (also in the terminal, of course change the ProjectName to your actual project name)\n+\n+```javascript","path":"source/_posts/2016-11-08-Vapor-setup.md","position":20,"original_position":20,"commit_id":"cfb1e0637ebc91c91ce07cedfbac535eaf79f330","original_commit_id":"cfb1e0637ebc91c91ce07cedfbac535eaf79f330","user":{"login":"nickskull","id":1776969,"avatar_url":"https://avatars.githubusercontent.com/u/1776969?v=3","gravatar_id":"","url":"https://api.github.com/users/nickskull","html_url":"https://github.com/nickskull","followers_url":"https://api.github.com/users/nickskull/followers","following_url":"https://api.github.com/users/nickskull/following{/other_user}","gists_url":"https://api.github.com/users/nickskull/gists{/gist_id}","starred_url":"https://api.github.com/users/nickskull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickskull/subscriptions","organizations_url":"https://api.github.com/users/nickskull/orgs","repos_url":"https://api.github.com/users/nickskull/repos","events_url":"https://api.github.com/users/nickskull/events{/privacy}","received_events_url":"https://api.github.com/users/nickskull/received_events","type":"User","site_admin":false},"body":"This should be ```bash","created_at":"2016-11-14T14:05:30Z","updated_at":"2016-11-14T14:05:30Z","html_url":"https://github.com/nodesagency/blog/pull/40#discussion_r87805807","pull_request_url":"https://api.github.com/repos/nodesagency/blog/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/nodesagency/blog/pulls/comments/87805807"},"html":{"href":"https://github.com/nodesagency/blog/pull/40#discussion_r87805807"},"pull_request":{"href":"https://api.github.com/repos/nodesagency/blog/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/nodesagency/blog/pulls/40","id":93568559,"html_url":"https://github.com/nodesagency/blog/pull/40","diff_url":"https://github.com/nodesagency/blog/pull/40.diff","patch_url":"https://github.com/nodesagency/blog/pull/40.patch","issue_url":"https://api.github.com/repos/nodesagency/blog/issues/40","number":40,"state":"open","locked":false,"title":"Feature/6 simple steps to first vapor response","user":{"login":"OliverWangHansen","id":2588746,"avatar_url":"https://avatars.githubusercontent.com/u/2588746?v=3","gravatar_id":"","url":"https://api.github.com/users/OliverWangHansen","html_url":"https://github.com/OliverWangHansen","followers_url":"https://api.github.com/users/OliverWangHansen/followers","following_url":"https://api.github.com/users/OliverWangHansen/following{/other_user}","gists_url":"https://api.github.com/users/OliverWangHansen/gists{/gist_id}","starred_url":"https://api.github.com/users/OliverWangHansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OliverWangHansen/subscriptions","organizations_url":"https://api.github.com/users/OliverWangHansen/orgs","repos_url":"https://api.github.com/users/OliverWangHansen/repos","events_url":"https://api.github.com/users/OliverWangHansen/events{/privacy}","received_events_url":"https://api.github.com/users/OliverWangHansen/received_events","type":"User","site_admin":false},"body":"Please review, have updated spelling mistakes and made it a little easier to follow for noobs. :)","created_at":"2016-11-14T13:44:43Z","updated_at":"2016-11-14T14:15:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b7643fe19269eacd5b304a41045467bb0855f0c","assignee":{"login":"nickskull","id":1776969,"avatar_url":"https://avatars.githubusercontent.com/u/1776969?v=3","gravatar_id":"","url":"https://api.github.com/users/nickskull","html_url":"https://github.com/nickskull","followers_url":"https://api.github.com/users/nickskull/followers","following_url":"https://api.github.com/users/nickskull/following{/other_user}","gists_url":"https://api.github.com/users/nickskull/gists{/gist_id}","starred_url":"https://api.github.com/users/nickskull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickskull/subscriptions","organizations_url":"https://api.github.com/users/nickskull/orgs","repos_url":"https://api.github.com/users/nickskull/repos","events_url":"https://api.github.com/users/nickskull/events{/privacy}","received_events_url":"https://api.github.com/users/nickskull/received_events","type":"User","site_admin":false},"assignees":[{"login":"nickskull","id":1776969,"avatar_url":"https://avatars.githubusercontent.com/u/1776969?v=3","gravatar_id":"","url":"https://api.github.com/users/nickskull","html_url":"https://github.com/nickskull","followers_url":"https://api.github.com/users/nickskull/followers","following_url":"https://api.github.com/users/nickskull/following{/other_user}","gists_url":"https://api.github.com/users/nickskull/gists{/gist_id}","starred_url":"https://api.github.com/users/nickskull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickskull/subscriptions","organizations_url":"https://api.github.com/users/nickskull/orgs","repos_url":"https://api.github.com/users/nickskull/repos","events_url":"https://api.github.com/users/nickskull/events{/privacy}","received_events_url":"https://api.github.com/users/nickskull/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nodesagency/blog/pulls/40/commits","review_comments_url":"https://api.github.com/repos/nodesagency/blog/pulls/40/comments","review_comment_url":"https://api.github.com/repos/nodesagency/blog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nodesagency/blog/issues/40/comments","statuses_url":"https://api.github.com/repos/nodesagency/blog/statuses/cfb1e0637ebc91c91ce07cedfbac535eaf79f330","head":{"label":"nodesagency:feature/6-simple-steps-to-first-vapor-response","ref":"feature/6-simple-steps-to-first-vapor-response","sha":"cfb1e0637ebc91c91ce07cedfbac535eaf79f330","user":{"login":"nodesagency","id":868688,"avatar_url":"https://avatars.githubusercontent.com/u/868688?v=3","gravatar_id":"","url":"https://api.github.com/users/nodesagency","html_url":"https://github.com/nodesagency","followers_url":"https://api.github.com/users/nodesagency/followers","following_url":"https://api.github.com/users/nodesagency/following{/other_user}","gists_url":"https://api.github.com/users/nodesagency/gists{/gist_id}","starred_url":"https://api.github.com/users/nodesagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodesagency/subscriptions","organizations_url":"https://api.github.com/users/nodesagency/orgs","repos_url":"https://api.github.com/users/nodesagency/repos","events_url":"https://api.github.com/users/nodesagency/events{/privacy}","received_events_url":"https://api.github.com/users/nodesagency/received_events","type":"Organization","site_admin":false},"repo":{"id":63684972,"name":"blog","full_name":"nodesagency/blog","owner":{"login":"nodesagency","id":868688,"avatar_url":"https://avatars.githubusercontent.com/u/868688?v=3","gravatar_id":"","url":"https://api.github.com/users/nodesagency","html_url":"https://github.com/nodesagency","followers_url":"https://api.github.com/users/nodesagency/followers","following_url":"https://api.github.com/users/nodesagency/following{/other_user}","gists_url":"https://api.github.com/users/nodesagency/gists{/gist_id}","starred_url":"https://api.github.com/users/nodesagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodesagency/subscriptions","organizations_url":"https://api.github.com/users/nodesagency/orgs","repos_url":"https://api.github.com/users/nodesagency/repos","events_url":"https://api.github.com/users/nodesagency/events{/privacy}","received_events_url":"https://api.github.com/users/nodesagency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodesagency/blog","description":"Nodes Engineering blog","fork":false,"url":"https://api.github.com/repos/nodesagency/blog","forks_url":"https://api.github.com/repos/nodesagency/blog/forks","keys_url":"https://api.github.com/repos/nodesagency/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodesagency/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodesagency/blog/teams","hooks_url":"https://api.github.com/repos/nodesagency/blog/hooks","issue_events_url":"https://api.github.com/repos/nodesagency/blog/issues/events{/number}","events_url":"https://api.github.com/repos/nodesagency/blog/events","assignees_url":"https://api.github.com/repos/nodesagency/blog/assignees{/user}","branches_url":"https://api.github.com/repos/nodesagency/blog/branches{/branch}","tags_url":"https://api.github.com/repos/nodesagency/blog/tags","blobs_url":"https://api.github.com/repos/nodesagency/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodesagency/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodesagency/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodesagency/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodesagency/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/nodesagency/blog/languages","stargazers_url":"https://api.github.com/repos/nodesagency/blog/stargazers","contributors_url":"https://api.github.com/repos/nodesagency/blog/contributors","subscribers_url":"https://api.github.com/repos/nodesagency/blog/subscribers","subscription_url":"https://api.github.com/repos/nodesagency/blog/subscription","commits_url":"https://api.github.com/repos/nodesagency/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodesagency/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodesagency/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodesagency/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodesagency/blog/contents/{+path}","compare_url":"https://api.github.com/repos/nodesagency/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodesagency/blog/merges","archive_url":"https://api.github.com/repos/nodesagency/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodesagency/blog/downloads","issues_url":"https://api.github.com/repos/nodesagency/blog/issues{/number}","pulls_url":"https://api.github.com/repos/nodesagency/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/nodesagency/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/nodesagency/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodesagency/blog/labels{/name}","releases_url":"https://api.github.com/repos/nodesagency/blog/releases{/id}","deployments_url":"https://api.github.com/repos/nodesagency/blog/deployments","created_at":"2016-07-19T10:34:58Z","updated_at":"2016-10-27T15:00:22Z","pushed_at":"2016-11-14T13:58:07Z","git_url":"git://github.com/nodesagency/blog.git","ssh_url":"git@github.com:nodesagency/blog.git","clone_url":"https://github.com/nodesagency/blog.git","svn_url":"https://github.com/nodesagency/blog","homepage":null,"size":2860,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":8,"forks":4,"open_issues":8,"watchers":1,"default_branch":"master"}},"base":{"label":"nodesagency:develop","ref":"develop","sha":"fb2c7f663c213bb8b2029689a6b7dc9c76bbc274","user":{"login":"nodesagency","id":868688,"avatar_url":"https://avatars.githubusercontent.com/u/868688?v=3","gravatar_id":"","url":"https://api.github.com/users/nodesagency","html_url":"https://github.com/nodesagency","followers_url":"https://api.github.com/users/nodesagency/followers","following_url":"https://api.github.com/users/nodesagency/following{/other_user}","gists_url":"https://api.github.com/users/nodesagency/gists{/gist_id}","starred_url":"https://api.github.com/users/nodesagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodesagency/subscriptions","organizations_url":"https://api.github.com/users/nodesagency/orgs","repos_url":"https://api.github.com/users/nodesagency/repos","events_url":"https://api.github.com/users/nodesagency/events{/privacy}","received_events_url":"https://api.github.com/users/nodesagency/received_events","type":"Organization","site_admin":false},"repo":{"id":63684972,"name":"blog","full_name":"nodesagency/blog","owner":{"login":"nodesagency","id":868688,"avatar_url":"https://avatars.githubusercontent.com/u/868688?v=3","gravatar_id":"","url":"https://api.github.com/users/nodesagency","html_url":"https://github.com/nodesagency","followers_url":"https://api.github.com/users/nodesagency/followers","following_url":"https://api.github.com/users/nodesagency/following{/other_user}","gists_url":"https://api.github.com/users/nodesagency/gists{/gist_id}","starred_url":"https://api.github.com/users/nodesagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodesagency/subscriptions","organizations_url":"https://api.github.com/users/nodesagency/orgs","repos_url":"https://api.github.com/users/nodesagency/repos","events_url":"https://api.github.com/users/nodesagency/events{/privacy}","received_events_url":"https://api.github.com/users/nodesagency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodesagency/blog","description":"Nodes Engineering blog","fork":false,"url":"https://api.github.com/repos/nodesagency/blog","forks_url":"https://api.github.com/repos/nodesagency/blog/forks","keys_url":"https://api.github.com/repos/nodesagency/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodesagency/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodesagency/blog/teams","hooks_url":"https://api.github.com/repos/nodesagency/blog/hooks","issue_events_url":"https://api.github.com/repos/nodesagency/blog/issues/events{/number}","events_url":"https://api.github.com/repos/nodesagency/blog/events","assignees_url":"https://api.github.com/repos/nodesagency/blog/assignees{/user}","branches_url":"https://api.github.com/repos/nodesagency/blog/branches{/branch}","tags_url":"https://api.github.com/repos/nodesagency/blog/tags","blobs_url":"https://api.github.com/repos/nodesagency/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodesagency/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodesagency/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodesagency/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodesagency/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/nodesagency/blog/languages","stargazers_url":"https://api.github.com/repos/nodesagency/blog/stargazers","contributors_url":"https://api.github.com/repos/nodesagency/blog/contributors","subscribers_url":"https://api.github.com/repos/nodesagency/blog/subscribers","subscription_url":"https://api.github.com/repos/nodesagency/blog/subscription","commits_url":"https://api.github.com/repos/nodesagency/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodesagency/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodesagency/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodesagency/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodesagency/blog/contents/{+path}","compare_url":"https://api.github.com/repos/nodesagency/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodesagency/blog/merges","archive_url":"https://api.github.com/repos/nodesagency/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodesagency/blog/downloads","issues_url":"https://api.github.com/repos/nodesagency/blog/issues{/number}","pulls_url":"https://api.github.com/repos/nodesagency/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/nodesagency/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/nodesagency/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodesagency/blog/labels{/name}","releases_url":"https://api.github.com/repos/nodesagency/blog/releases{/id}","deployments_url":"https://api.github.com/repos/nodesagency/blog/deployments","created_at":"2016-07-19T10:34:58Z","updated_at":"2016-10-27T15:00:22Z","pushed_at":"2016-11-14T13:58:07Z","git_url":"git://github.com/nodesagency/blog.git","ssh_url":"git@github.com:nodesagency/blog.git","clone_url":"https://github.com/nodesagency/blog.git","svn_url":"https://github.com/nodesagency/blog","homepage":null,"size":2860,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":8,"forks":4,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nodesagency/blog/pulls/40"},"html":{"href":"https://github.com/nodesagency/blog/pull/40"},"issue":{"href":"https://api.github.com/repos/nodesagency/blog/issues/40"},"comments":{"href":"https://api.github.com/repos/nodesagency/blog/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/nodesagency/blog/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/nodesagency/blog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nodesagency/blog/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/nodesagency/blog/statuses/cfb1e0637ebc91c91ce07cedfbac535eaf79f330"}}}}
{"actor":{"display_login":"nickskull"}}