{"action":"created","comment":{"url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls/comments/112709154","pull_request_review_id":34047414,"id":112709154,"diff_hunk":"@@ -5,74 +5,87 @@ Place your responses inside the fenced code-blocks where indicated by comments.\n What is the purpose of a backend?\n \n ```md\n-// your response here\n+To retrieve and save data and do data manipulation\n ```\n \n Which layer in the MVC pattern is used by the controller to fetch data?\n \n ```md\n-// your response here\n+Model\n ```\n \n Which layer in the MVC pattern communicates with the model?\n \n ```md\n-// your response here\n+Controller\n ```\n \n Why don't we use views in our interpretation of the MVC pattern?\n \n ```md\n-// your response here\n+Because that's what our client is for and the Rails views are no longer used really. We can implement a better view using another framework.\n ```\n \n What does C.R.U.D stand for?\n \n ```md\n-// your response here\n+* Create\n+* Read\n+* Update\n+* Delete\n ```\n \n In which part of the MVC pattern can we find C.R.U.D actions?\n \n ```md\n-// your response here\n+Controller\n ```\n \n List at least 5 standard rails actions that C.R.U.D requests correspond to?\n \n ```md\n-// your response here\n+* Read = Show\n+* Read = Index\n+* Update = Update\n+* Delete = Destroy\n+* Create = Create\n ```\n \n A user action fires a `GET` request for `/people/1`. Explain in detail each step\n required for data to be returned to the client. (bullet points or ordered list)\n \n ```md\n-// your response here\n+* The routes must be configured to handle a GET to the `people` path\n+* The controller must have a `show` method which takes in the `id` param and calls the `Person` model\n+* The `Person` model must be created and call out to the database for a `Person`\n+* The database must have a people table with a person of id=1\n ```\n \n What is the command to generate a new rails-api app?\n \n ```bash\n-// your response here\n+rails-api new api_name\n ```\n \n What is the command to start an instance of a rails server?\n \n ```bash\n-// your response here\n+rails server\n ```\n \n What are the commands to drop, create, migrate and seed a database from the command\n line? (5 bullet points)\n \n ```bash\n-// your response here\n+* db:drop\n+* db:create\n+* db:migrate\n+* db:seed","path":"diagnostic.md","position":90,"original_position":90,"commit_id":"742f908c67d9c56c2739c054563c58f30c16a184","original_commit_id":"742f908c67d9c56c2739c054563c58f30c16a184","user":{"login":"jordanallain","id":18097107,"avatar_url":"https://avatars3.githubusercontent.com/u/18097107?v=3","gravatar_id":"","url":"https://api.github.com/users/jordanallain","html_url":"https://github.com/jordanallain","followers_url":"https://api.github.com/users/jordanallain/followers","following_url":"https://api.github.com/users/jordanallain/following{/other_user}","gists_url":"https://api.github.com/users/jordanallain/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanallain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanallain/subscriptions","organizations_url":"https://api.github.com/users/jordanallain/orgs","repos_url":"https://api.github.com/users/jordanallain/repos","events_url":"https://api.github.com/users/jordanallain/events{/privacy}","received_events_url":"https://api.github.com/users/jordanallain/received_events","type":"User","site_admin":false},"body":"Last one would be db:examples","created_at":"2017-04-21T15:04:26Z","updated_at":"2017-04-21T15:04:27Z","html_url":"https://github.com/ga-wdi-boston/rails-api-diagnostic/pull/138#discussion_r112709154","pull_request_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls/138","_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls/comments/112709154"},"html":{"href":"https://github.com/ga-wdi-boston/rails-api-diagnostic/pull/138#discussion_r112709154"},"pull_request":{"href":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls/138"}}},"pull_request":{"url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls/138","id":116598366,"html_url":"https://github.com/ga-wdi-boston/rails-api-diagnostic/pull/138","diff_url":"https://github.com/ga-wdi-boston/rails-api-diagnostic/pull/138.diff","patch_url":"https://github.com/ga-wdi-boston/rails-api-diagnostic/pull/138.patch","issue_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/issues/138","number":138,"state":"open","locked":false,"title":"Add responses to rails api diagnostic","user":{"login":"jim-moody","id":26190589,"avatar_url":"https://avatars1.githubusercontent.com/u/26190589?v=3","gravatar_id":"","url":"https://api.github.com/users/jim-moody","html_url":"https://github.com/jim-moody","followers_url":"https://api.github.com/users/jim-moody/followers","following_url":"https://api.github.com/users/jim-moody/following{/other_user}","gists_url":"https://api.github.com/users/jim-moody/gists{/gist_id}","starred_url":"https://api.github.com/users/jim-moody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jim-moody/subscriptions","organizations_url":"https://api.github.com/users/jim-moody/orgs","repos_url":"https://api.github.com/users/jim-moody/repos","events_url":"https://api.github.com/users/jim-moody/events{/privacy}","received_events_url":"https://api.github.com/users/jim-moody/received_events","type":"User","site_admin":false},"body":"Comfort: 5\r\nClarity: 5\r\n\r\nI used the following documentation for help with these answers:\r\nhttps://github.com/jim-moody/rails-api-single-resource\r\nhttps://github.com/rails-api/rails-api\r\nhttps://github.com/ga-wdi-boston/rails-api-library-demo","created_at":"2017-04-19T17:15:57Z","updated_at":"2017-04-21T15:04:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2eb5859ed18014b09601c039f079bbc00962e15","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls/138/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls/138/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/issues/138/comments","statuses_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/statuses/742f908c67d9c56c2739c054563c58f30c16a184","head":{"label":"jim-moody:response","ref":"response","sha":"742f908c67d9c56c2739c054563c58f30c16a184","user":{"login":"jim-moody","id":26190589,"avatar_url":"https://avatars1.githubusercontent.com/u/26190589?v=3","gravatar_id":"","url":"https://api.github.com/users/jim-moody","html_url":"https://github.com/jim-moody","followers_url":"https://api.github.com/users/jim-moody/followers","following_url":"https://api.github.com/users/jim-moody/following{/other_user}","gists_url":"https://api.github.com/users/jim-moody/gists{/gist_id}","starred_url":"https://api.github.com/users/jim-moody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jim-moody/subscriptions","organizations_url":"https://api.github.com/users/jim-moody/orgs","repos_url":"https://api.github.com/users/jim-moody/repos","events_url":"https://api.github.com/users/jim-moody/events{/privacy}","received_events_url":"https://api.github.com/users/jim-moody/received_events","type":"User","site_admin":false},"repo":{"id":88769603,"name":"rails-api-diagnostic","full_name":"jim-moody/rails-api-diagnostic","owner":{"login":"jim-moody","id":26190589,"avatar_url":"https://avatars1.githubusercontent.com/u/26190589?v=3","gravatar_id":"","url":"https://api.github.com/users/jim-moody","html_url":"https://github.com/jim-moody","followers_url":"https://api.github.com/users/jim-moody/followers","following_url":"https://api.github.com/users/jim-moody/following{/other_user}","gists_url":"https://api.github.com/users/jim-moody/gists{/gist_id}","starred_url":"https://api.github.com/users/jim-moody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jim-moody/subscriptions","organizations_url":"https://api.github.com/users/jim-moody/orgs","repos_url":"https://api.github.com/users/jim-moody/repos","events_url":"https://api.github.com/users/jim-moody/events{/privacy}","received_events_url":"https://api.github.com/users/jim-moody/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jim-moody/rails-api-diagnostic","description":null,"fork":true,"url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic","forks_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/forks","keys_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/teams","hooks_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/hooks","issue_events_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/issues/events{/number}","events_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/events","assignees_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/assignees{/user}","branches_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/branches{/branch}","tags_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/tags","blobs_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/git/refs{/sha}","trees_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/statuses/{sha}","languages_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/languages","stargazers_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/stargazers","contributors_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/contributors","subscribers_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/subscribers","subscription_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/subscription","commits_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/commits{/sha}","git_commits_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/git/commits{/sha}","comments_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/comments{/number}","issue_comment_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/issues/comments{/number}","contents_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/contents/{+path}","compare_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/merges","archive_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/downloads","issues_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/issues{/number}","pulls_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/pulls{/number}","milestones_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/milestones{/number}","notifications_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/labels{/name}","releases_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/releases{/id}","deployments_url":"https://api.github.com/repos/jim-moody/rails-api-diagnostic/deployments","created_at":"2017-04-19T17:00:58Z","updated_at":"2016-11-15T21:37:50Z","pushed_at":"2017-04-19T17:14:47Z","git_url":"git://github.com/jim-moody/rails-api-diagnostic.git","ssh_url":"git@github.com:jim-moody/rails-api-diagnostic.git","clone_url":"https://github.com/jim-moody/rails-api-diagnostic.git","svn_url":"https://github.com/jim-moody/rails-api-diagnostic","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ga-wdi-boston:master","ref":"master","sha":"6d9503a1f7e4247185dde68df4d6884df8174ff9","user":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars0.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"repo":{"id":51892527,"name":"rails-api-diagnostic","full_name":"ga-wdi-boston/rails-api-diagnostic","owner":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars0.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-boston/rails-api-diagnostic","description":null,"fork":false,"url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic","forks_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/forks","keys_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/teams","hooks_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/events","assignees_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/tags","blobs_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/subscription","commits_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/merges","archive_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/downloads","issues_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/releases{/id}","deployments_url":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/deployments","created_at":"2016-02-17T03:46:46Z","updated_at":"2016-11-15T21:37:50Z","pushed_at":"2017-04-19T17:30:36Z","git_url":"git://github.com/ga-wdi-boston/rails-api-diagnostic.git","ssh_url":"git@github.com:ga-wdi-boston/rails-api-diagnostic.git","clone_url":"https://github.com/ga-wdi-boston/rails-api-diagnostic.git","svn_url":"https://github.com/ga-wdi-boston/rails-api-diagnostic","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":148,"mirror_url":null,"open_issues_count":32,"forks":148,"open_issues":32,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls/138"},"html":{"href":"https://github.com/ga-wdi-boston/rails-api-diagnostic/pull/138"},"issue":{"href":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/issues/138"},"comments":{"href":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls/138/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/pulls/138/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-boston/rails-api-diagnostic/statuses/742f908c67d9c56c2739c054563c58f30c16a184"}}}}
{"actor":{"display_login":"jordanallain"}}