From 562d54ee95b0efcfddf8e2d396a4dec22aab3624 Mon Sep 17 00:00:00 2001 From: okaybase <75366457+okaybase@users.noreply.github.com> Date: Thu, 25 Aug 2022 20:39:19 +0800 Subject: [PATCH] docs: use get method for query resources (#7786) * use GET method for query * use GET method for query --- docs/en/latest/admin-api.md | 4 ++-- docs/zh/latest/admin-api.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/latest/admin-api.md b/docs/en/latest/admin-api.md index 5be784ce7d55..3db5d92977c4 100644 --- a/docs/en/latest/admin-api.md +++ b/docs/en/latest/admin-api.md @@ -63,7 +63,7 @@ The example is as follows: ```shell $ curl http://127.0.0.1:9080/apisix/admin/routes?page=1&page_size=10 \ --H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d ' +-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET -i -d ' { "count": 1, "list": [ @@ -102,7 +102,7 @@ The following example will return a list of routes, and all routes in the list s ```shell $ curl http://127.0.0.1:9080/apisix/admin/routes?name=test&uri=foo&label= \ --H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d ' +-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET -i -d ' { "count": 1, "list": [ diff --git a/docs/zh/latest/admin-api.md b/docs/zh/latest/admin-api.md index 9880c87fc452..54d969fb0adb 100644 --- a/docs/zh/latest/admin-api.md +++ b/docs/zh/latest/admin-api.md @@ -65,7 +65,7 @@ Admin API 在 V3 版本中做了一些不向下兼容的调整,以及支持更 ```shell $ curl http://127.0.0.1:9080/apisix/admin/routes?page=1&page_size=10 \ --H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d ' +-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET -i -d ' { "count": 1, "list": [ @@ -103,7 +103,7 @@ $ curl http://127.0.0.1:9080/apisix/admin/routes?page=1&page_size=10 \ ```shell $ curl http://127.0.0.1:9080/apisix/admin/routes?name=test&uri=foo&label= \ --H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d ' +-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET -i -d ' { "count": 1, "list": [