{"action":"created","issue":{"url":"https://api.github.com/repos/Mashape/kong/issues/517","labels_url":"https://api.github.com/repos/Mashape/kong/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/kong/issues/517/comments","events_url":"https://api.github.com/repos/Mashape/kong/issues/517/events","html_url":"https://github.com/Mashape/kong/pull/517","id":103593531,"number":517,"title":"ratelimit plugin: add option to retrieve current rate limit (issue #232)","user":{"login":"tyiss","id":13839166,"avatar_url":"https://avatars.githubusercontent.com/u/13839166?v=3","gravatar_id":"","url":"https://api.github.com/users/tyiss","html_url":"https://github.com/tyiss","followers_url":"https://api.github.com/users/tyiss/followers","following_url":"https://api.github.com/users/tyiss/following{/other_user}","gists_url":"https://api.github.com/users/tyiss/gists{/gist_id}","starred_url":"https://api.github.com/users/tyiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyiss/subscriptions","organizations_url":"https://api.github.com/users/tyiss/orgs","repos_url":"https://api.github.com/users/tyiss/repos","events_url":"https://api.github.com/users/tyiss/events{/privacy}","received_events_url":"https://api.github.com/users/tyiss/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Mashape/kong/labels/DO%20NOT%20MERGE%20(wip)","name":"DO NOT MERGE (wip)","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-27T20:55:57Z","updated_at":"2015-09-02T18:26:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Mashape/kong/pulls/517","html_url":"https://github.com/Mashape/kong/pull/517","diff_url":"https://github.com/Mashape/kong/pull/517.diff","patch_url":"https://github.com/Mashape/kong/pull/517.patch"},"body":"adding support to retrieve the current rate limit.\r\nto get json response with current ratelimit, issue an api request to the following path: /v1/retrive_metrics\r\n\r\nthe request for /v1/retrive_metrics will not count as a request to the upstream server and will not go to the upstream server.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Mashape/kong/issues/comments/137200054","html_url":"https://github.com/Mashape/kong/pull/517#issuecomment-137200054","issue_url":"https://api.github.com/repos/Mashape/kong/issues/517","id":137200054,"user":{"login":"ahmadnassri","id":183195,"avatar_url":"https://avatars.githubusercontent.com/u/183195?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmadnassri","html_url":"https://github.com/ahmadnassri","followers_url":"https://api.github.com/users/ahmadnassri/followers","following_url":"https://api.github.com/users/ahmadnassri/following{/other_user}","gists_url":"https://api.github.com/users/ahmadnassri/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmadnassri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmadnassri/subscriptions","organizations_url":"https://api.github.com/users/ahmadnassri/orgs","repos_url":"https://api.github.com/users/ahmadnassri/repos","events_url":"https://api.github.com/users/ahmadnassri/events{/privacy}","received_events_url":"https://api.github.com/users/ahmadnassri/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T18:26:20Z","updated_at":"2015-09-02T18:26:20Z","body":"> I am still not sure a header is the best way\r\n\r\nagreed, there might and will be many more apis that need to be exposed to the \"consumer\" through Kong, and if we start with headers as the routing mechanism, it will become a mess ...\r\n\r\nwhy not expose another port for \"consumer\" level APIs?\r\n\r\nthis way the API owner can choose to open it up to consumers or not, and we can have a clean RESTful API separate from the actual APIs on the Proxy port and of course separate from the Admin APIs"}}