{"action":"created","comment":{"url":"https://api.github.com/repos/marcy-terui/rapis/pulls/comments/67996170","id":67996170,"diff_hunk":"@@ -0,0 +1,253 @@\n+item \"/\" do\n+  get do\n+    consumes [\"application/json\"]\n+    produces [\"text/html\"]\n+    responses do\n+      code \"200\" do\n+        description \"200 response\"\n+        headers(\n+          {\"Content-Type\"=>{\"type\"=>\"string\"}})\n+      end\n+    end\n+    amazon_apigateway_integration do\n+      responses do\n+        default do\n+          statusCode 200\n+          responseParameters(\n+            {\"method.response.header.Content-Type\"=>\"'text/html'\"})\n+          responseTemplates(\n+            {\"text/html\"=>\"<html></html>\"})\n+        end\n+      end\n+      requestTemplates(\n+        {\"application/json\"=>\"{\\\"statusCode\\\": 200}\"})\n+      passthroughBehavior \"when_no_match\"\n+      type \"mock\"\n+    end\n+  end\n+  post do\n+    produces [\"application/json\"]\n+    responses do\n+      code \"200\" do\n+        description \"200 response\"\n+        schema do\n+          ref \"#/definitions/Empty\"\n+        end\n+        headers(\n+          {\"Access-Control-Allow-Origin\"=>{\"type\"=>\"string\"}})\n+      end\n+    end\n+    amazon_apigateway_integration do\n+      responses do\n+        default do\n+          statusCode 200\n+          responseParameters(\n+            {\"method.response.header.Access-Control-Allow-Origin\"=>\"'*'\"})\n+        end\n+      end\n+      uri \"http://petstore-demo-endpoint.execute-api.com/petstore/pets\"\n+      passthroughBehavior \"when_no_match\"\n+      httpMethod \"POST\"\n+      type \"http\"\n+    end\n+  end\n+  options do\n+    consumes [\"application/json\"]\n+    produces [\"application/json\"]\n+    responses do\n+      code \"200\" do\n+        description \"200 response\"\n+        schema do\n+          ref \"#/definitions/Empty\"\n+        end\n+        headers(\n+          {\"Access-Control-Allow-Origin\"=>{\"type\"=>\"string\"},\n+           \"Access-Control-Allow-Methods\"=>{\"type\"=>\"string\"},\n+           \"Access-Control-Allow-Headers\"=>{\"type\"=>\"string\"}})\n+      end\n+    end\n+    amazon_apigateway_integration do\n+      responses do\n+        default do\n+          statusCode 200\n+          responseParameters(\n+            {\"method.response.header.Access-Control-Allow-Methods\"=>\"'POST,OPTIONS'\",\n+             \"method.response.header.Access-Control-Allow-Headers\"=>\n+              \"'Content-Type,X-Amz-Date,Authorization,X-Api-Key'\",\n+             \"method.response.header.Access-Control-Allow-Origin\"=>\"'*'\"})\n+        end\n+      end\n+      requestTemplates(\n+        {\"application/json\"=>\"{\\\"statusCode\\\": 200}\"})\n+      passthroughBehavior \"when_no_match\"\n+      type \"mock\"\n+    end\n+  end\n+end\n+item \"/pets\" do\n+  get do\n+    produces [\"application/json\"]\n+    parameters do\n+      query \"type\" do\n+        required false\n+        type \"string\"\n+      end\n+      query \"page\" do\n+        required false\n+        type \"string\"\n+      end\n+    end\n+    responses do\n+      code \"200\" do\n+        description \"200 response\"\n+        schema do\n+          ref \"#/definitions/Empty\"\n+        end\n+        headers(\n+          {\"Access-Control-Allow-Origin\"=>{\"type\"=>\"string\"}})\n+      end\n+    end\n+    amazon_apigateway_integration do\n+      responses do\n+        default do\n+          statusCode 200\n+          responseParameters(\n+            {\"method.response.header.Access-Control-Allow-Origin\"=>\"'*'\"})\n+        end\n+      end\n+      uri \"http://petstore-demo-endpoint.execute-api.com/petstore/pets\"\n+      passthroughBehavior \"when_no_match\"\n+      httpMethod \"GET\"\n+      requestParameters(\n+        {\"integration.request.querystring.page\"=>\"method.request.querystring.page\",\n+         \"integration.request.querystring.type\"=>\"method.request.querystring.type\"})\n+      type \"http\"\n+    end\n+  end\n+  post do\n+    produces [\"application/json\"]\n+    responses do\n+      code \"200\" do\n+        description \"200 response\"\n+        schema do\n+          ref \"#/definitions/Empty\"","path":"spec/rapis/_files/paths.rb","position":34,"original_position":133,"commit_id":"619dc67b077f2d05cfaf6db3a7704e656d76301b","original_commit_id":"619dc67b077f2d05cfaf6db3a7704e656d76301b","user":{"login":"marcy-terui","id":4560264,"avatar_url":"https://avatars.githubusercontent.com/u/4560264?v=3","gravatar_id":"","url":"https://api.github.com/users/marcy-terui","html_url":"https://github.com/marcy-terui","followers_url":"https://api.github.com/users/marcy-terui/followers","following_url":"https://api.github.com/users/marcy-terui/following{/other_user}","gists_url":"https://api.github.com/users/marcy-terui/gists{/gist_id}","starred_url":"https://api.github.com/users/marcy-terui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcy-terui/subscriptions","organizations_url":"https://api.github.com/users/marcy-terui/orgs","repos_url":"https://api.github.com/users/marcy-terui/repos","events_url":"https://api.github.com/users/marcy-terui/events{/privacy}","received_events_url":"https://api.github.com/users/marcy-terui/received_events","type":"User","site_admin":false},"body":"__[rubocop]__\n* Prefer single-quoted strings when you don't need string interpolation or special symbols. [:ref](https://github.com/bbatsov/ruby-style-guide#consistent-string-literals)","created_at":"2016-06-22T05:25:56Z","updated_at":"2016-06-22T05:25:56Z","html_url":"https://github.com/marcy-terui/rapis/pull/1#discussion_r67996170","pull_request_url":"https://api.github.com/repos/marcy-terui/rapis/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/marcy-terui/rapis/pulls/comments/67996170"},"html":{"href":"https://github.com/marcy-terui/rapis/pull/1#discussion_r67996170"},"pull_request":{"href":"https://api.github.com/repos/marcy-terui/rapis/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/marcy-terui/rapis/pulls/1","id":74725614,"html_url":"https://github.com/marcy-terui/rapis/pull/1","diff_url":"https://github.com/marcy-terui/rapis/pull/1.diff","patch_url":"https://github.com/marcy-terui/rapis/pull/1.patch","issue_url":"https://api.github.com/repos/marcy-terui/rapis/issues/1","number":1,"state":"open","locked":false,"title":"Add _include method & refactoring","user":{"login":"marcy-terui","id":4560264,"avatar_url":"https://avatars.githubusercontent.com/u/4560264?v=3","gravatar_id":"","url":"https://api.github.com/users/marcy-terui","html_url":"https://github.com/marcy-terui","followers_url":"https://api.github.com/users/marcy-terui/followers","following_url":"https://api.github.com/users/marcy-terui/following{/other_user}","gists_url":"https://api.github.com/users/marcy-terui/gists{/gist_id}","starred_url":"https://api.github.com/users/marcy-terui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcy-terui/subscriptions","organizations_url":"https://api.github.com/users/marcy-terui/orgs","repos_url":"https://api.github.com/users/marcy-terui/repos","events_url":"https://api.github.com/users/marcy-terui/events{/privacy}","received_events_url":"https://api.github.com/users/marcy-terui/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-22T05:23:37Z","updated_at":"2016-06-22T05:25:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7ecb5a7ca184141f88dd35fda32e816676df0fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/marcy-terui/rapis/pulls/1/commits","review_comments_url":"https://api.github.com/repos/marcy-terui/rapis/pulls/1/comments","review_comment_url":"https://api.github.com/repos/marcy-terui/rapis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marcy-terui/rapis/issues/1/comments","statuses_url":"https://api.github.com/repos/marcy-terui/rapis/statuses/619dc67b077f2d05cfaf6db3a7704e656d76301b","head":{"label":"marcy-terui:add-dsl","ref":"add-dsl","sha":"619dc67b077f2d05cfaf6db3a7704e656d76301b","user":{"login":"marcy-terui","id":4560264,"avatar_url":"https://avatars.githubusercontent.com/u/4560264?v=3","gravatar_id":"","url":"https://api.github.com/users/marcy-terui","html_url":"https://github.com/marcy-terui","followers_url":"https://api.github.com/users/marcy-terui/followers","following_url":"https://api.github.com/users/marcy-terui/following{/other_user}","gists_url":"https://api.github.com/users/marcy-terui/gists{/gist_id}","starred_url":"https://api.github.com/users/marcy-terui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcy-terui/subscriptions","organizations_url":"https://api.github.com/users/marcy-terui/orgs","repos_url":"https://api.github.com/users/marcy-terui/repos","events_url":"https://api.github.com/users/marcy-terui/events{/privacy}","received_events_url":"https://api.github.com/users/marcy-terui/received_events","type":"User","site_admin":false},"repo":{"id":59107877,"name":"rapis","full_name":"marcy-terui/rapis","owner":{"login":"marcy-terui","id":4560264,"avatar_url":"https://avatars.githubusercontent.com/u/4560264?v=3","gravatar_id":"","url":"https://api.github.com/users/marcy-terui","html_url":"https://github.com/marcy-terui","followers_url":"https://api.github.com/users/marcy-terui/followers","following_url":"https://api.github.com/users/marcy-terui/following{/other_user}","gists_url":"https://api.github.com/users/marcy-terui/gists{/gist_id}","starred_url":"https://api.github.com/users/marcy-terui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcy-terui/subscriptions","organizations_url":"https://api.github.com/users/marcy-terui/orgs","repos_url":"https://api.github.com/users/marcy-terui/repos","events_url":"https://api.github.com/users/marcy-terui/events{/privacy}","received_events_url":"https://api.github.com/users/marcy-terui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcy-terui/rapis","description":"Swagger as Ruby DSL and its deployment tool for Amazon API Gateway","fork":false,"url":"https://api.github.com/repos/marcy-terui/rapis","forks_url":"https://api.github.com/repos/marcy-terui/rapis/forks","keys_url":"https://api.github.com/repos/marcy-terui/rapis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcy-terui/rapis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcy-terui/rapis/teams","hooks_url":"https://api.github.com/repos/marcy-terui/rapis/hooks","issue_events_url":"https://api.github.com/repos/marcy-terui/rapis/issues/events{/number}","events_url":"https://api.github.com/repos/marcy-terui/rapis/events","assignees_url":"https://api.github.com/repos/marcy-terui/rapis/assignees{/user}","branches_url":"https://api.github.com/repos/marcy-terui/rapis/branches{/branch}","tags_url":"https://api.github.com/repos/marcy-terui/rapis/tags","blobs_url":"https://api.github.com/repos/marcy-terui/rapis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcy-terui/rapis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcy-terui/rapis/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcy-terui/rapis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcy-terui/rapis/statuses/{sha}","languages_url":"https://api.github.com/repos/marcy-terui/rapis/languages","stargazers_url":"https://api.github.com/repos/marcy-terui/rapis/stargazers","contributors_url":"https://api.github.com/repos/marcy-terui/rapis/contributors","subscribers_url":"https://api.github.com/repos/marcy-terui/rapis/subscribers","subscription_url":"https://api.github.com/repos/marcy-terui/rapis/subscription","commits_url":"https://api.github.com/repos/marcy-terui/rapis/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcy-terui/rapis/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcy-terui/rapis/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcy-terui/rapis/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcy-terui/rapis/contents/{+path}","compare_url":"https://api.github.com/repos/marcy-terui/rapis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcy-terui/rapis/merges","archive_url":"https://api.github.com/repos/marcy-terui/rapis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcy-terui/rapis/downloads","issues_url":"https://api.github.com/repos/marcy-terui/rapis/issues{/number}","pulls_url":"https://api.github.com/repos/marcy-terui/rapis/pulls{/number}","milestones_url":"https://api.github.com/repos/marcy-terui/rapis/milestones{/number}","notifications_url":"https://api.github.com/repos/marcy-terui/rapis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcy-terui/rapis/labels{/name}","releases_url":"https://api.github.com/repos/marcy-terui/rapis/releases{/id}","deployments_url":"https://api.github.com/repos/marcy-terui/rapis/deployments","created_at":"2016-05-18T11:02:45Z","updated_at":"2016-05-27T18:08:33Z","pushed_at":"2016-06-22T05:23:38Z","git_url":"git://github.com/marcy-terui/rapis.git","ssh_url":"git@github.com:marcy-terui/rapis.git","clone_url":"https://github.com/marcy-terui/rapis.git","svn_url":"https://github.com/marcy-terui/rapis","homepage":"https://rubygems.org/gems/rapis","size":30,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"marcy-terui:master","ref":"master","sha":"6dc359d576919929f92603651327e49cfb91249a","user":{"login":"marcy-terui","id":4560264,"avatar_url":"https://avatars.githubusercontent.com/u/4560264?v=3","gravatar_id":"","url":"https://api.github.com/users/marcy-terui","html_url":"https://github.com/marcy-terui","followers_url":"https://api.github.com/users/marcy-terui/followers","following_url":"https://api.github.com/users/marcy-terui/following{/other_user}","gists_url":"https://api.github.com/users/marcy-terui/gists{/gist_id}","starred_url":"https://api.github.com/users/marcy-terui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcy-terui/subscriptions","organizations_url":"https://api.github.com/users/marcy-terui/orgs","repos_url":"https://api.github.com/users/marcy-terui/repos","events_url":"https://api.github.com/users/marcy-terui/events{/privacy}","received_events_url":"https://api.github.com/users/marcy-terui/received_events","type":"User","site_admin":false},"repo":{"id":59107877,"name":"rapis","full_name":"marcy-terui/rapis","owner":{"login":"marcy-terui","id":4560264,"avatar_url":"https://avatars.githubusercontent.com/u/4560264?v=3","gravatar_id":"","url":"https://api.github.com/users/marcy-terui","html_url":"https://github.com/marcy-terui","followers_url":"https://api.github.com/users/marcy-terui/followers","following_url":"https://api.github.com/users/marcy-terui/following{/other_user}","gists_url":"https://api.github.com/users/marcy-terui/gists{/gist_id}","starred_url":"https://api.github.com/users/marcy-terui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcy-terui/subscriptions","organizations_url":"https://api.github.com/users/marcy-terui/orgs","repos_url":"https://api.github.com/users/marcy-terui/repos","events_url":"https://api.github.com/users/marcy-terui/events{/privacy}","received_events_url":"https://api.github.com/users/marcy-terui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcy-terui/rapis","description":"Swagger as Ruby DSL and its deployment tool for Amazon API Gateway","fork":false,"url":"https://api.github.com/repos/marcy-terui/rapis","forks_url":"https://api.github.com/repos/marcy-terui/rapis/forks","keys_url":"https://api.github.com/repos/marcy-terui/rapis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcy-terui/rapis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcy-terui/rapis/teams","hooks_url":"https://api.github.com/repos/marcy-terui/rapis/hooks","issue_events_url":"https://api.github.com/repos/marcy-terui/rapis/issues/events{/number}","events_url":"https://api.github.com/repos/marcy-terui/rapis/events","assignees_url":"https://api.github.com/repos/marcy-terui/rapis/assignees{/user}","branches_url":"https://api.github.com/repos/marcy-terui/rapis/branches{/branch}","tags_url":"https://api.github.com/repos/marcy-terui/rapis/tags","blobs_url":"https://api.github.com/repos/marcy-terui/rapis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcy-terui/rapis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcy-terui/rapis/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcy-terui/rapis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcy-terui/rapis/statuses/{sha}","languages_url":"https://api.github.com/repos/marcy-terui/rapis/languages","stargazers_url":"https://api.github.com/repos/marcy-terui/rapis/stargazers","contributors_url":"https://api.github.com/repos/marcy-terui/rapis/contributors","subscribers_url":"https://api.github.com/repos/marcy-terui/rapis/subscribers","subscription_url":"https://api.github.com/repos/marcy-terui/rapis/subscription","commits_url":"https://api.github.com/repos/marcy-terui/rapis/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcy-terui/rapis/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcy-terui/rapis/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcy-terui/rapis/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcy-terui/rapis/contents/{+path}","compare_url":"https://api.github.com/repos/marcy-terui/rapis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcy-terui/rapis/merges","archive_url":"https://api.github.com/repos/marcy-terui/rapis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcy-terui/rapis/downloads","issues_url":"https://api.github.com/repos/marcy-terui/rapis/issues{/number}","pulls_url":"https://api.github.com/repos/marcy-terui/rapis/pulls{/number}","milestones_url":"https://api.github.com/repos/marcy-terui/rapis/milestones{/number}","notifications_url":"https://api.github.com/repos/marcy-terui/rapis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcy-terui/rapis/labels{/name}","releases_url":"https://api.github.com/repos/marcy-terui/rapis/releases{/id}","deployments_url":"https://api.github.com/repos/marcy-terui/rapis/deployments","created_at":"2016-05-18T11:02:45Z","updated_at":"2016-05-27T18:08:33Z","pushed_at":"2016-06-22T05:23:38Z","git_url":"git://github.com/marcy-terui/rapis.git","ssh_url":"git@github.com:marcy-terui/rapis.git","clone_url":"https://github.com/marcy-terui/rapis.git","svn_url":"https://github.com/marcy-terui/rapis","homepage":"https://rubygems.org/gems/rapis","size":30,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marcy-terui/rapis/pulls/1"},"html":{"href":"https://github.com/marcy-terui/rapis/pull/1"},"issue":{"href":"https://api.github.com/repos/marcy-terui/rapis/issues/1"},"comments":{"href":"https://api.github.com/repos/marcy-terui/rapis/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/marcy-terui/rapis/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/marcy-terui/rapis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marcy-terui/rapis/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/marcy-terui/rapis/statuses/619dc67b077f2d05cfaf6db3a7704e656d76301b"}}}}
{"actor":{"display_login":"marcy-terui"}}