Skip to content

Commit

Permalink
docs: use get method for query resources (apache#7786)
Browse files Browse the repository at this point in the history
* use GET method for query

* use GET method for query
  • Loading branch information
okaybase authored and Liu-Junlin committed Nov 4, 2022
1 parent dfa29ce commit 562d54e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/en/latest/admin-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/latest/admin-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down

0 comments on commit 562d54e

Please sign in to comment.