-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Some Admin APIs' data structure are not unified #6105
Comments
不是大问题,不影响使用。只是看着别扭而已 |
Yes, these APIs don't fetch data from etcd, so they are different. BTW,
stand-alone mode doesn't have Admin API.
You can get stream plugin list via |
These resources forget to call apisix/apisix/admin/routes.lua Line 205 in 92ac6d9
Let's fix it in a separate PR! You may ask why we don't call |
Could you provide detailed steps to reproduce it? It's a bit weird in this case, because both
|
In my test
|
My env ref doc docs/apisix/admin-api/#request-body-parameters-3
|
Yes, it is added in 2.10 |
Maybe add since version to doc is a better experience?
|
We currently provide multi-version doc on the doc site: https://apisix.apache.org/docs/apisix/2.9/admin-api
We have tried it before, for example in the control-API's doc. |
Yes,This is a feasible solution. |
Is there any works I can do it to improve this issue? |
AFAIK, not yet, Would you like to submit a PR to fix it ? Thanks. |
I'd like to work on this, let's submit a PR. |
@juzhiyuan Consider solved. Feel free to reopen it if needed. |
Issue description
apisix admin api 的略微混乱的数据结构
/apisix/admin/plugin_metadata
/和/apisix/admin/global_rules
)中的"count"
字段是string
,其余admin接口是int
node.nodes
无值{}
,有值[]
,更奇葩的是upstream
的node.nodes[].nodes
,通过接口更新的是{}
,通过dashboard更新的是[{},{}]
,就很难受/apisix/admin/plugins?all=true
和/apisix/admin/plugins/list
返回风格与其他接口返回数据风格不一致stream: true # stream 插件需要设置 stream 属性为 true
啥样的插件算是 stream 插件?没法从admin api 相关接口中获得这个标识Environment
apisix version
):uname -a
):nginx -V
oropenresty -V
):curl http://127.0.0.1:9090/v1/server_info
to get the info from server-info API):luarocks --version
):Steps to reproduce
感觉很多是历史遗留问题,但是希望最好能解决下
Actual result
以上
Error log
无
Expected result
No response
The text was updated successfully, but these errors were encountered: