{"action":"created","comment":{"url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls/comments/60320298","id":60320298,"diff_hunk":"@@ -32,22 +51,71 @@ const app = (httpClient, telemetryAPI) => {\n   server.route([{\n     method: 'GET',\n     path: '/equipments',\n-    handler: (request, reply) => {\n-      return equipmentController.findAll(request, reply);\n-    },\n     config: {\n-      tags: ['api']\n+      handler: (request, reply) => {\n+        equipmentController.findAll(request, reply);\n+      },\n+      tags: ['api'],\n+      validate: {\n+        params: equipmentValidator.findAllValidations,\n+        headers: equipmentValidator.headers\n+      },\n+      plugins: {\n+        'hapi-swagger': {\n+          responses: {\n+            200: {","path":"app.js","position":53,"original_position":53,"commit_id":"6f65f6dc63a277735febe71105bd070d3a87d39a","original_commit_id":"6f65f6dc63a277735febe71105bd070d3a87d39a","user":{"login":"waldemarnt","id":5835706,"avatar_url":"https://avatars.githubusercontent.com/u/5835706?v=3","gravatar_id":"","url":"https://api.github.com/users/waldemarnt","html_url":"https://github.com/waldemarnt","followers_url":"https://api.github.com/users/waldemarnt/followers","following_url":"https://api.github.com/users/waldemarnt/following{/other_user}","gists_url":"https://api.github.com/users/waldemarnt/gists{/gist_id}","starred_url":"https://api.github.com/users/waldemarnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waldemarnt/subscriptions","organizations_url":"https://api.github.com/users/waldemarnt/orgs","repos_url":"https://api.github.com/users/waldemarnt/repos","events_url":"https://api.github.com/users/waldemarnt/events{/privacy}","received_events_url":"https://api.github.com/users/waldemarnt/received_events","type":"User","site_admin":false},"body":"We could have a default response object and just merge with the configurations that will be different. What do you think?","created_at":"2016-04-19T22:03:41Z","updated_at":"2016-04-19T22:03:41Z","html_url":"https://github.com/agco-fuse/fuse-equipment-api/pull/20#discussion_r60320298","pull_request_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls/comments/60320298"},"html":{"href":"https://github.com/agco-fuse/fuse-equipment-api/pull/20#discussion_r60320298"},"pull_request":{"href":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls/20","id":67093533,"html_url":"https://github.com/agco-fuse/fuse-equipment-api/pull/20","diff_url":"https://github.com/agco-fuse/fuse-equipment-api/pull/20.diff","patch_url":"https://github.com/agco-fuse/fuse-equipment-api/pull/20.patch","issue_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/issues/20","number":20,"state":"open","locked":false,"title":"Include Swagger documentation for Equipments","user":{"login":"glauco","id":76370,"avatar_url":"https://avatars.githubusercontent.com/u/76370?v=3","gravatar_id":"","url":"https://api.github.com/users/glauco","html_url":"https://github.com/glauco","followers_url":"https://api.github.com/users/glauco/followers","following_url":"https://api.github.com/users/glauco/following{/other_user}","gists_url":"https://api.github.com/users/glauco/gists{/gist_id}","starred_url":"https://api.github.com/users/glauco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glauco/subscriptions","organizations_url":"https://api.github.com/users/glauco/orgs","repos_url":"https://api.github.com/users/glauco/repos","events_url":"https://api.github.com/users/glauco/events{/privacy}","received_events_url":"https://api.github.com/users/glauco/received_events","type":"User","site_admin":false},"body":"Given we want to provide narrative documentation around our endpoints,\r\nincluding Swagger documentation is an important part of it.","created_at":"2016-04-19T21:31:54Z","updated_at":"2016-04-19T22:03:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ecda8ff706e96ffd1e9b873b4c724f16df0337d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls/20/commits","review_comments_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls/20/comments","review_comment_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/issues/20/comments","statuses_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/statuses/6f65f6dc63a277735febe71105bd070d3a87d39a","head":{"label":"agco-fuse:add-swagger-documentation","ref":"add-swagger-documentation","sha":"6f65f6dc63a277735febe71105bd070d3a87d39a","user":{"login":"agco-fuse","id":18173515,"avatar_url":"https://avatars.githubusercontent.com/u/18173515?v=3","gravatar_id":"","url":"https://api.github.com/users/agco-fuse","html_url":"https://github.com/agco-fuse","followers_url":"https://api.github.com/users/agco-fuse/followers","following_url":"https://api.github.com/users/agco-fuse/following{/other_user}","gists_url":"https://api.github.com/users/agco-fuse/gists{/gist_id}","starred_url":"https://api.github.com/users/agco-fuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agco-fuse/subscriptions","organizations_url":"https://api.github.com/users/agco-fuse/orgs","repos_url":"https://api.github.com/users/agco-fuse/repos","events_url":"https://api.github.com/users/agco-fuse/events{/privacy}","received_events_url":"https://api.github.com/users/agco-fuse/received_events","type":"Organization","site_admin":false},"repo":{"id":55786259,"name":"fuse-equipment-api","full_name":"agco-fuse/fuse-equipment-api","owner":{"login":"agco-fuse","id":18173515,"avatar_url":"https://avatars.githubusercontent.com/u/18173515?v=3","gravatar_id":"","url":"https://api.github.com/users/agco-fuse","html_url":"https://github.com/agco-fuse","followers_url":"https://api.github.com/users/agco-fuse/followers","following_url":"https://api.github.com/users/agco-fuse/following{/other_user}","gists_url":"https://api.github.com/users/agco-fuse/gists{/gist_id}","starred_url":"https://api.github.com/users/agco-fuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agco-fuse/subscriptions","organizations_url":"https://api.github.com/users/agco-fuse/orgs","repos_url":"https://api.github.com/users/agco-fuse/repos","events_url":"https://api.github.com/users/agco-fuse/events{/privacy}","received_events_url":"https://api.github.com/users/agco-fuse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/agco-fuse/fuse-equipment-api","description":"","fork":false,"url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api","forks_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/forks","keys_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/teams","hooks_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/hooks","issue_events_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/issues/events{/number}","events_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/events","assignees_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/assignees{/user}","branches_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/branches{/branch}","tags_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/tags","blobs_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/statuses/{sha}","languages_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/languages","stargazers_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/stargazers","contributors_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/contributors","subscribers_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/subscribers","subscription_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/subscription","commits_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/contents/{+path}","compare_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/merges","archive_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/downloads","issues_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/issues{/number}","pulls_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls{/number}","milestones_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/milestones{/number}","notifications_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/labels{/name}","releases_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/releases{/id}","deployments_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/deployments","created_at":"2016-04-08T14:44:32Z","updated_at":"2016-04-12T14:49:55Z","pushed_at":"2016-04-19T21:58:55Z","git_url":"git://github.com/agco-fuse/fuse-equipment-api.git","ssh_url":"git@github.com:agco-fuse/fuse-equipment-api.git","clone_url":"https://github.com/agco-fuse/fuse-equipment-api.git","svn_url":"https://github.com/agco-fuse/fuse-equipment-api","homepage":null,"size":96,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"agco-fuse:master","ref":"master","sha":"b285ea10ef537c96c9f3c89bfc370c7f786322d4","user":{"login":"agco-fuse","id":18173515,"avatar_url":"https://avatars.githubusercontent.com/u/18173515?v=3","gravatar_id":"","url":"https://api.github.com/users/agco-fuse","html_url":"https://github.com/agco-fuse","followers_url":"https://api.github.com/users/agco-fuse/followers","following_url":"https://api.github.com/users/agco-fuse/following{/other_user}","gists_url":"https://api.github.com/users/agco-fuse/gists{/gist_id}","starred_url":"https://api.github.com/users/agco-fuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agco-fuse/subscriptions","organizations_url":"https://api.github.com/users/agco-fuse/orgs","repos_url":"https://api.github.com/users/agco-fuse/repos","events_url":"https://api.github.com/users/agco-fuse/events{/privacy}","received_events_url":"https://api.github.com/users/agco-fuse/received_events","type":"Organization","site_admin":false},"repo":{"id":55786259,"name":"fuse-equipment-api","full_name":"agco-fuse/fuse-equipment-api","owner":{"login":"agco-fuse","id":18173515,"avatar_url":"https://avatars.githubusercontent.com/u/18173515?v=3","gravatar_id":"","url":"https://api.github.com/users/agco-fuse","html_url":"https://github.com/agco-fuse","followers_url":"https://api.github.com/users/agco-fuse/followers","following_url":"https://api.github.com/users/agco-fuse/following{/other_user}","gists_url":"https://api.github.com/users/agco-fuse/gists{/gist_id}","starred_url":"https://api.github.com/users/agco-fuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agco-fuse/subscriptions","organizations_url":"https://api.github.com/users/agco-fuse/orgs","repos_url":"https://api.github.com/users/agco-fuse/repos","events_url":"https://api.github.com/users/agco-fuse/events{/privacy}","received_events_url":"https://api.github.com/users/agco-fuse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/agco-fuse/fuse-equipment-api","description":"","fork":false,"url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api","forks_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/forks","keys_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/teams","hooks_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/hooks","issue_events_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/issues/events{/number}","events_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/events","assignees_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/assignees{/user}","branches_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/branches{/branch}","tags_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/tags","blobs_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/statuses/{sha}","languages_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/languages","stargazers_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/stargazers","contributors_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/contributors","subscribers_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/subscribers","subscription_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/subscription","commits_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/contents/{+path}","compare_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/merges","archive_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/downloads","issues_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/issues{/number}","pulls_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls{/number}","milestones_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/milestones{/number}","notifications_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/labels{/name}","releases_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/releases{/id}","deployments_url":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/deployments","created_at":"2016-04-08T14:44:32Z","updated_at":"2016-04-12T14:49:55Z","pushed_at":"2016-04-19T21:58:55Z","git_url":"git://github.com/agco-fuse/fuse-equipment-api.git","ssh_url":"git@github.com:agco-fuse/fuse-equipment-api.git","clone_url":"https://github.com/agco-fuse/fuse-equipment-api.git","svn_url":"https://github.com/agco-fuse/fuse-equipment-api","homepage":null,"size":96,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls/20"},"html":{"href":"https://github.com/agco-fuse/fuse-equipment-api/pull/20"},"issue":{"href":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/issues/20"},"comments":{"href":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/agco-fuse/fuse-equipment-api/statuses/6f65f6dc63a277735febe71105bd070d3a87d39a"}}}}