mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-04 21:17:36 +08:00
doc: removed old contents.
This commit is contained in:
parent
7c90425025
commit
f18de5e7d2
44
README.md
44
README.md
@ -133,47 +133,3 @@ Expires: Fri, 31 May 2019 08:44:03 GMT
|
||||
### Plugin
|
||||
|
||||
![](doc/flow-plugin-internal.png)
|
||||
|
||||
|
||||
### User routes with plugins config in etcd
|
||||
|
||||
Here is example for one route and one upstream:
|
||||
|
||||
```shell
|
||||
$ curl http://127.0.0.1:2379/v2/keys/user_routes/1 | python -m json.tool
|
||||
{
|
||||
"action": "get",
|
||||
"node": {
|
||||
"createdIndex": 649,
|
||||
"key": "/user_routes/1",
|
||||
"modifiedIndex": 649,
|
||||
"value": "{\"host\":\"test.com\",\"methods\":[\"GET\"],\"uri\":\"/hello\",\"id\":3333,\"plugin_config\":{\"example-plugin\":{\"i\":1,\"s\":\"s\",\"t\":[1,2]},\"new-plugin\":{\"a\":\"a\"}},\"upstream\":{\"id\":1,\"type\":\"roundrobin\"}}"
|
||||
}
|
||||
}
|
||||
|
||||
$ curl http://127.0.0.1:2379/v2/keys/user_upstreams/1 | python -m json.tool
|
||||
{
|
||||
"action": "get",
|
||||
"node": {
|
||||
"createdIndex": 679,
|
||||
"key": "/user_upstreams/1",
|
||||
"modifiedIndex": 679,
|
||||
"value": "{\"id\":1,\"type\":\"roundrobin\",\"nodes\":{\"220.181.57.215:80\":1,\"220.181.57.216:80\":1,\"220.181.57.217:80\":1}}"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Here is example for one route (it contains the upstream information):
|
||||
|
||||
```
|
||||
$ curl http://127.0.0.1:2379/v2/keys/user_routes/1 | python -m json.tool
|
||||
{
|
||||
"action": "get",
|
||||
"node": {
|
||||
"createdIndex": 649,
|
||||
"key": "/user_routes/1",
|
||||
"modifiedIndex": 649,
|
||||
"value": "{\"host\":\"test.com\",\"methods\":[\"GET\"],\"uri\":\"/hello\",\"id\":3333,\"plugin_config\":{\"example-plugin\":{\"i\":1,\"s\":\"s\",\"t\":[1,2]},\"new-plugin\":{\"a\":\"a\"}},\"upstream\":{\"type\":\"roundrobin\",\"nodes\":{\"220.181.57.215:80\":1,\"220.181.57.216:80\":1,\"220.181.57.217:80\":1}}}"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user