apisix icon indicating copy to clipboard operation
apisix copied to clipboard

request help: Why is it wrong when I modify the URI of the route

Open StretchV opened this issue 5 years ago • 3 comments

Issue description

QQ20210603-0

为什么我修改uris时apisix报错呢,修改其他的属性是没问题的

Environment

2.3 Request help without environment information will be ignored or closed.

  • apisix version (cmd: apisix version):2.3
  • OS (cmd: uname -a):
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API):
  • apisix-dashboard version, if have:
  • luarocks version, if the issue is about installation (cmd: luarocks --version):

StretchV avatar Jun 03 '21 06:06 StretchV

原来是这条路由原来存的是uri,...但是如果我想把这条路由的uri改成数组我该怎么请求修改操作呢

StretchV avatar Jun 03 '21 07:06 StretchV

You can do this:

curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PATCH -i -d '{
    "uri": null,
    "uris": ["/a","/b"]
}'

Firstsawyou avatar Jun 03 '21 07:06 Firstsawyou

Closed as lack of response.

spacewander avatar Jun 13 '21 05:06 spacewander