From 2ff3883fd2d56b019fea196e705374233a61ffb1 Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Wed, 28 Oct 2015 18:05:19 -0700 Subject: [PATCH 1/3] Revert "Allow PATCH method on jwt credential endpoint" --- kong/plugins/jwt/api.lua | 4 ---- spec/plugins/jwt/api_spec.lua | 8 +++----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/kong/plugins/jwt/api.lua b/kong/plugins/jwt/api.lua index df5dccc5f4ea..e0bb3ea6075b 100644 --- a/kong/plugins/jwt/api.lua +++ b/kong/plugins/jwt/api.lua @@ -40,10 +40,6 @@ return { return helpers.responses.send_HTTP_OK(self.credential) end, - PATCH = function(self, dao_factory) - crud.patch(self.params, self.credential, dao_factory.jwt_secrets) - end, - DELETE = function(self, dao_factory) crud.delete(self.credential, dao_factory.jwt_secrets) end diff --git a/spec/plugins/jwt/api_spec.lua b/spec/plugins/jwt/api_spec.lua index 7115612256e7..f8802bf72be6 100644 --- a/spec/plugins/jwt/api_spec.lua +++ b/spec/plugins/jwt/api_spec.lua @@ -94,11 +94,9 @@ describe("JWT API", function() describe("PATCH", function() - it("[SUCCESS] should update a credential", function() - local response, status = http_client.patch(BASE_URL..jwt_secret.id, {key = "alice",secret = "newsecret"}) - assert.equal(200, status) - jwt_secret = json.decode(response) - assert.equal("newsecret", jwt_secret.secret) + it("[SUCCESS] should not be supported", function() + local _, status = http_client.patch(BASE_URL..jwt_secret.id, {key = "alice"}) + assert.equal(405, status) end) end) From 495f1fa040f9e978b29aa1a65739b8313414735f Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Fri, 30 Oct 2015 13:14:29 -0700 Subject: [PATCH 2/3] docs(readme) add links t oplugin development guide and Lua reference --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 40625b9c60b9..9388df8665c5 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,9 @@ You can find a detailed Roadmap of Kong on the [Wiki](https://github.com/Mashape ## Development -If you are planning on developing on Kong (writing your own plugin or contribute to the core), you'll need a development installation. The `next` branch holds the latest unreleased source code. +If you are planning on developing on Kong, you'll need a development installation. The `next` branch holds the latest unreleased source code. + +You can read more about writing your own plugins in the [Plugin Development Guide](https://getkong.org/docs/latest/plugin-development/), or browse an online version of Kong's source code documentation in the [Public Lua API Reference](https://getkong.org/docs/0.5.x/lua-reference/). #### Vagrant From c72c8b039419570a960e5c9682681b2f28270913 Mon Sep 17 00:00:00 2001 From: Augusto Marietti Date: Mon, 2 Nov 2015 19:49:20 -0800 Subject: [PATCH 3/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9388df8665c5..16b08debabe7 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Microservice & API Management Layer [![][kong-logo]][kong-url] -Kong was [created](http://stackshare.io/mashape/how-mashape-manages-over-15-000-apis-microservices) to power the API Marketplace at [Mashape](https://www.mashape.com) to secure, manage and extend Microservices & APIs, while handling billions of requests per month. Kong is powered by the battle-tested tech of **NGINX** with a focus on scalability, high performance & reliability. +Kong was [created](http://stackshare.io/mashape/how-mashape-manages-over-15-000-apis-microservices) to power the API Marketplace at [Mashape](https://www.mashape.com) to secure, manage and extend Microservices & APIs. Kong is backed by the battle-tested **NGINX** with a focus on scalability, high performance & reliability. [Website](http://getkong.org) | [Documentation](http://getkong.org/docs) | @@ -94,6 +94,7 @@ Videos: Tools: - [Kongfig](https://github.com/mybuilder/kongfig) +- [Kongfig on Puppet Forge](https://forge.puppetlabs.com/mybuilder/kongfig) - [Kong on Tutum](https://github.com/Sillelien/docker-kong) - [Kong GUI in JS](https://github.com/rsdevigo/jungle) - [Kong GUI in Py](https://github.com/vikingco/django-kong-admin)