You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2020/06/22 11:18:20 UTC

[incubator-apisix] branch master updated: doc: update admin-api docs (#1753)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new a5ac97f  doc: update admin-api docs (#1753)
a5ac97f is described below

commit a5ac97f8b6b69ce15e946c4a7efab97441c89a5f
Author: Scaat Feng <sc...@gmail.com>
AuthorDate: Mon Jun 22 19:18:11 2020 +0800

    doc: update admin-api docs (#1753)
---
 doc/admin-api.md       | 18 ++++++++----------
 doc/zh-cn/admin-api.md | 16 ++++++++--------
 2 files changed, 16 insertions(+), 18 deletions(-)

diff --git a/doc/admin-api.md b/doc/admin-api.md
index 981e3e6..b1112e9 100644
--- a/doc/admin-api.md
+++ b/doc/admin-api.md
@@ -19,8 +19,6 @@
 
 # Table of Contents
 
-===
-
 * [Route](#route)
 * [Service](#service)
 * [Consumer](#consumer)
@@ -385,14 +383,14 @@ Example:
 
 ```shell
 $ curl http://127.0.0.1:9080/apisix/admin/upstreams/100  -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -i -X PUT -d '
-> {
->     "type": "roundrobin",
->     "nodes": {
->         "127.0.0.1:80": 1,
->         "127.0.0.2:80": 2,
->         "foo.com:80": 3
->     }
-> }'
+{
+    "type":"roundrobin",
+    "nodes":{
+        "127.0.0.1:80":1,
+        "127.0.0.2:80":2,
+        "foo.com:80":3
+    }
+}'
 HTTP/1.1 201 Created
 Date: Thu, 26 Dec 2019 04:19:34 GMT
 Content-Type: text/plain
diff --git a/doc/zh-cn/admin-api.md b/doc/zh-cn/admin-api.md
index e328820..1625661 100644
--- a/doc/zh-cn/admin-api.md
+++ b/doc/zh-cn/admin-api.md
@@ -394,14 +394,14 @@ upstream 对象 json 配置内容:
 ```shell
 # 创建一个upstream
 $ curl http://127.0.0.1:9080/apisix/admin/upstreams/100  -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -i -X PUT -d '
-> {
->     "type": "roundrobin",
->     "nodes": {
->         "127.0.0.1:80": 1,
->         "127.0.0.2:80": 2,
->         "foo.com:80": 3
->     }
-> }'
+{
+    "type":"roundrobin",
+    "nodes":{
+        "127.0.0.1:80":1,
+        "127.0.0.2:80":2,
+        "foo.com:80":3
+    }
+}'
 HTTP/1.1 201 Created
 Date: Thu, 26 Dec 2019 04:19:34 GMT
 Content-Type: text/plain