Skip to content

Commit

Permalink
doc: update admin-api docs (#1753)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaat authored Jun 22, 2020
1 parent 497acbb commit a5ac97f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
18 changes: 8 additions & 10 deletions doc/admin-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

# Table of Contents

===

* [Route](#route)
* [Service](#service)
* [Consumer](#consumer)
Expand Down Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions doc/zh-cn/admin-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5ac97f

Please sign in to comment.