{"action":"created","issue":{"url":"https://api.github.com/repos/Mashape/kong/issues/505","repository_url":"https://api.github.com/repos/Mashape/kong","labels_url":"https://api.github.com/repos/Mashape/kong/issues/505/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/kong/issues/505/comments","events_url":"https://api.github.com/repos/Mashape/kong/issues/505/events","html_url":"https://github.com/Mashape/kong/issues/505","id":103109996,"number":505,"title":"Applying a Plugin with a variety of global and specific properties","user":{"login":"thefosk","id":964813,"avatar_url":"https://avatars.githubusercontent.com/u/964813?v=3","gravatar_id":"","url":"https://api.github.com/users/thefosk","html_url":"https://github.com/thefosk","followers_url":"https://api.github.com/users/thefosk/followers","following_url":"https://api.github.com/users/thefosk/following{/other_user}","gists_url":"https://api.github.com/users/thefosk/gists{/gist_id}","starred_url":"https://api.github.com/users/thefosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefosk/subscriptions","organizations_url":"https://api.github.com/users/thefosk/orgs","repos_url":"https://api.github.com/users/thefosk/repos","events_url":"https://api.github.com/users/thefosk/events{/privacy}","received_events_url":"https://api.github.com/users/thefosk/received_events","type":"User","site_admin":false},"labels":[{"id":192084543,"url":"https://api.github.com/repos/Mashape/kong/labels/area/admin%20api","name":"area/admin api","color":"d4c5f9","default":false},{"id":206318891,"url":"https://api.github.com/repos/Mashape/kong/labels/area/DAO","name":"area/DAO","color":"d4c5f9","default":false},{"id":236874944,"url":"https://api.github.com/repos/Mashape/kong/labels/Heavily%20Requested","name":"Heavily Requested","color":"f7c6c7","default":false},{"id":273259323,"url":"https://api.github.com/repos/Mashape/kong/labels/task/feature","name":"task/feature","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Mashape/kong/milestones/13","html_url":"https://github.com/Mashape/kong/milestones/0.10%20RC","labels_url":"https://api.github.com/repos/Mashape/kong/milestones/13/labels","id":1899758,"number":13,"title":"0.10 RC","description":"","creator":{"login":"Tieske","id":1077043,"avatar_url":"https://avatars.githubusercontent.com/u/1077043?v=3","gravatar_id":"","url":"https://api.github.com/users/Tieske","html_url":"https://github.com/Tieske","followers_url":"https://api.github.com/users/Tieske/followers","following_url":"https://api.github.com/users/Tieske/following{/other_user}","gists_url":"https://api.github.com/users/Tieske/gists{/gist_id}","starred_url":"https://api.github.com/users/Tieske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tieske/subscriptions","organizations_url":"https://api.github.com/users/Tieske/orgs","repos_url":"https://api.github.com/users/Tieske/repos","events_url":"https://api.github.com/users/Tieske/events{/privacy}","received_events_url":"https://api.github.com/users/Tieske/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":17,"state":"open","created_at":"2016-07-22T23:05:41Z","updated_at":"2016-11-04T12:09:35Z","due_on":"2016-10-26T00:00:00Z","closed_at":null},"comments":19,"created_at":"2015-08-25T20:31:09Z","updated_at":"2016-11-08T17:22:46Z","closed_at":null,"body":"Currently a plugin can be applied per `api_id`, and optionally per `api_id` and `consumer_id`.\n\nWe want a more flexible schema to apply plugins, that will allow us to:\n1. ~~Customize a global plugin for every API, without specifying any specific `api_id`.~~  \n   (Closed with #1369) \n2. ~~Customize a global plugin for every consumer, without specifying `api_id` and `consumer_id`.~~(Closed with #1369) \n3. Customize a plugin per:\n   - HTTP Method (`method`)\n   - Endpoint (`endpoint`, with regex support)\n   - By Request Header (`Accept`, `Content-Type`, `User-Agent`, etc...)\n\nLower priority:\n1. I would add also whitelisting and blacklisting support for each property, including `api_id`, `consumer_id`, `method`, `endpoint`, etc.\n2. Ability to enable more than once the same plugin for an API (deprecates #462)\n\nThis issue deprecates #160, #295 and #486.\n"},"comment":{"url":"https://api.github.com/repos/Mashape/kong/issues/comments/259200795","html_url":"https://github.com/Mashape/kong/issues/505#issuecomment-259200795","issue_url":"https://api.github.com/repos/Mashape/kong/issues/505","id":259200795,"user":{"login":"BrianHutchison","id":1455701,"avatar_url":"https://avatars.githubusercontent.com/u/1455701?v=3","gravatar_id":"","url":"https://api.github.com/users/BrianHutchison","html_url":"https://github.com/BrianHutchison","followers_url":"https://api.github.com/users/BrianHutchison/followers","following_url":"https://api.github.com/users/BrianHutchison/following{/other_user}","gists_url":"https://api.github.com/users/BrianHutchison/gists{/gist_id}","starred_url":"https://api.github.com/users/BrianHutchison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrianHutchison/subscriptions","organizations_url":"https://api.github.com/users/BrianHutchison/orgs","repos_url":"https://api.github.com/users/BrianHutchison/repos","events_url":"https://api.github.com/users/BrianHutchison/events{/privacy}","received_events_url":"https://api.github.com/users/BrianHutchison/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T17:22:46Z","updated_at":"2016-11-08T17:22:46Z","body":"To clarify my company's interest, we're specifically interested in routing based on the Accept header. This is a fairly common REST pattern for specifying versions in the Accept header, and we would want to target the appropriate upstream server. \r\n\r\nFor example:\r\n`GET /resource HTTP/1.1\r\nHost: api.example.com\r\nAccept: application/vnd.example.api+json;version=2\r\n`"}}
{"actor":{"display_login":"BrianHutchison"}}