You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/10/18 05:42:42 UTC

[apisix] branch master updated: docs: correct the query syntax and preserve the response data structure (#8104)

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new cf8ae8c00 docs: correct the query syntax and preserve the response data structure (#8104)
cf8ae8c00 is described below

commit cf8ae8c005abed293e13f8a3f47b73ee9f8a83d5
Author: okaybase <75...@users.noreply.github.com>
AuthorDate: Tue Oct 18 13:42:37 2022 +0800

    docs: correct the query syntax and preserve the response data structure (#8104)
---
 docs/en/latest/admin-api.md | 10 ++++++++--
 docs/zh/latest/admin-api.md | 10 ++++++++--
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/docs/en/latest/admin-api.md b/docs/en/latest/admin-api.md
index 2bf4d23c1..f024ffb51 100644
--- a/docs/en/latest/admin-api.md
+++ b/docs/en/latest/admin-api.md
@@ -91,7 +91,10 @@ The example is as follows:
 
 ```shell
 $ curl "http://127.0.0.1:9180/apisix/admin/routes?page=1&page_size=10" \
--H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET -i -d '
+-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET
+```
+
+```json
 {
   "total": 1,
   "list": [
@@ -131,7 +134,10 @@ The following example will return a list of routes, and all routes in the list s
 
 ```shell
 $ curl 'http://127.0.0.1:9180/apisix/admin/routes?name=test&uri=foo&label=' \
--H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET -i -d '
+-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET
+```
+
+```json
 {
   "total": 1,
   "list": [
diff --git a/docs/zh/latest/admin-api.md b/docs/zh/latest/admin-api.md
index ab465324e..b588583c3 100644
--- a/docs/zh/latest/admin-api.md
+++ b/docs/zh/latest/admin-api.md
@@ -93,7 +93,10 @@ Admin API 在 V3 版本中做了一些不向下兼容的调整,以及支持更
 
 ```shell
 $ curl "http://127.0.0.1:9180/apisix/admin/routes?page=1&page_size=10" \
--H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET -i -d '
+-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET
+```
+
+```json
 {
   "total": 1,
   "list": [
@@ -132,7 +135,10 @@ $ curl "http://127.0.0.1:9180/apisix/admin/routes?page=1&page_size=10" \
 
 ```shell
 $ curl 'http://127.0.0.1:9180/apisix/admin/routes?name=test&uri=foo&label=' \
--H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET -i -d '
+-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET
+```
+
+```json
 {
   "total": 1,
   "list": [