-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The API routing does not feel RESTful #98
Comments
We would still need to provide generic endpoints like We need to learn what are the use-cases we want to support (does it make sense to search an application by |
Yes of course, |
While at it, it would be nice to also consider accepting parameters via |
@thibaultcha You are passing the identifiers twice (once in uri, and another in the payload) in your yep examples, which I think you meant the opposite, otherwise there would be no benefit. |
👍 |
So, among many other things, the API now has an improved support for the It means:
Does it still make sense to support the old route:
or not? One use case I can see for |
@thibaultcha i would keep support for old route in the next release, and remove it in the following release, just for backward compatibility. as for all plugins, I see that as a special endpoint, perhaps simply |
If we use |
@thefosk perhaps the general route is only a |
The reasoning we had is that in the context of |
- keyauth and basicauth plugins now have their APIs updated and their route feels more RESTful too, they are accessible via /consumers/:consumer/keyauth - A migration was needed to be able to retrieve them per consumer. - Slightly better file structure Related to #98
PR opened with some massive changes: #257 |
- keyauth and basicauth plugins now have their APIs updated and their route feels more RESTful too, they are accessible via /consumers/:consumer/keyauth - A migration was needed to be able to retrieve them per consumer. - Slightly better file structure Related to #98
- keyauth and basicauth plugins now have their APIs updated and their route feels more RESTful too, they are accessible via /consumers/:consumer/keyauth - A migration was needed to be able to retrieve them per consumer. - Slightly better file structure Related to #98
- keyauth and basicauth plugins now have their APIs updated and their route feels more RESTful too, they are accessible via /consumers/:consumer/keyauth - A migration was needed to be able to retrieve them per consumer. - Slightly better file structure Related to #98
- keyauth and basicauth plugins now have their APIs updated and their route feels more RESTful too, they are accessible via /consumers/:consumer/keyauth - A migration was needed to be able to retrieve them per consumer. - Slightly better file structure Related to #98
- keyauth and basicauth plugins now have their APIs updated and their route feels more RESTful too, they are accessible via /consumers/:consumer/keyauth - A migration was needed to be able to retrieve them per consumer. - Slightly better file structure Related to #98
Closing this now that #257 has been merged. Please report any potential problem in a new issue! |
- keyauth and basicauth plugins now have their APIs updated and their route feels more RESTful too, they are accessible via /consumers/:consumer/keyauth - A migration was needed to be able to retrieve them per consumer. - Slightly better file structure Related to Kong#98 Former-commit-id: 4c0ff2dc64a7dcb607472fe164c0b97ee5b9bd87
- Fix exporter to attach subsystem label to memory stats [#118](Kong/kong-plugin-prometheus#118) - Expose dataplane status on control plane, new metrics `data_plane_last_seen`, `data_plane_config_hash` and `data_plane_version_compatible` are added. [#98](Kong/kong-plugin-prometheus#98)
- Fix exporter to attach subsystem label to memory stats [#118](Kong/kong-plugin-prometheus#118) - Expose dataplane status on control plane, new metrics `data_plane_last_seen`, `data_plane_config_hash` and `data_plane_version_compatible` are added. [#98](Kong/kong-plugin-prometheus#98)
This PR adds a series of metrics to expose connected Data Plane metrics on Control Plane side, including `data_plane_last_seen`, `data_plane_config_hash` and `data_plane_version_compatible`.
This PR adds a series of metrics to expose connected Data Plane metrics on Control Plane side, including `data_plane_last_seen`, `data_plane_config_hash` and `data_plane_version_compatible`.
* chore(session) bump lua-resty-session from 3.3 to 3.5 ### Summary ## [3.5] - 2020-05-22 ### Fixed - Fix `session:hide()` to not clear non-session request cookies that it seemed to do in some cases as reported by @altexy who also provided initial fix with #100. Thank you! ## [3.4] - 2020-05-08 ### Fixed - Fix session_cookie_maxsize - error attempt to compare string with number, fixes #98, thank you @vavra5 ### Changed - More robust and uniform configuration parsing * chore(session) release 2.4.1 ### Summary - bump lua-resty-session from 3.3 to 3.5
also loosen Penlight constraints
<a name="0.10.1"></a> ## [0.10.1] - 2022-12-06 ### bug fixes - **zerossl:** concatenate response body as string instead of table ([#98](fffonion/lua-resty-acme#98)) [986b1db](fffonion/lua-resty-acme@986b1db) <a name="0.10.0"></a> ## [0.10.0] - 2022-11-18 ### features - **autossl:** expose function to get cert from LRU cache ([#96](fffonion/lua-resty-acme#96)) [6135d0e](fffonion/lua-resty-acme@6135d0e) - **autossl:** better cache handling in blocking mode [40f5d2d](fffonion/lua-resty-acme@40f5d2d) - **autossl:** fix behavior change in non blocking mode [aa484cc](fffonion/lua-resty-acme@aa484cc) - **autossl:** move chains set condition back inside the main loop [b83a535](fffonion/lua-resty-acme@b83a535) - **autossl:** add blocking mode [5a623a5](fffonion/lua-resty-acme@5a623a5)
<a name="0.10.1"></a> ## [0.10.1] - 2022-12-06 ### bug fixes - **zerossl:** concatenate response body as string instead of table ([#98](fffonion/lua-resty-acme#98)) [986b1db](fffonion/lua-resty-acme@986b1db) <a name="0.10.0"></a> ## [0.10.0] - 2022-11-18 ### features - **autossl:** expose function to get cert from LRU cache ([#96](fffonion/lua-resty-acme#96)) [6135d0e](fffonion/lua-resty-acme@6135d0e) - **autossl:** better cache handling in blocking mode [40f5d2d](fffonion/lua-resty-acme@40f5d2d) - **autossl:** fix behavior change in non blocking mode [aa484cc](fffonion/lua-resty-acme@aa484cc) - **autossl:** move chains set condition back inside the main loop [b83a535](fffonion/lua-resty-acme@b83a535) - **autossl:** add blocking mode [5a623a5](fffonion/lua-resty-acme@5a623a5)
Writing the Getting Started guide raised a concern about the structure of our routes. Having to explain:
Nope
Feels wrong. Having to pass the
api_id
as a form parameter does not feel REST. It would be nicer to do:Yep
Here the route became:
/apis/{api_name}/plugins/
. Since plugins can also be attached to applications, do we have to create theapplications/{id}/apis/{api_id/api_name}/plugins/
route? Probably.Same for applications and accounts:
Nope
Becomes:
Yep
New route:
/accounts/{account_id/provider_id}/applications/
.The text was updated successfully, but these errors were encountered: