Documentation improvements
This commit is contained in:
parent
a07e395181
commit
c263560401
1 changed files with 86 additions and 60 deletions
|
@ -254,11 +254,12 @@ $ curl -s "http://localhost:8080/health" | jq .
|
|||
}
|
||||
```
|
||||
|
||||
* ```/api```: ```GET``` or ```PUT``` a configuration
|
||||
* ```/api```: ```GET``` configuration for all providers
|
||||
|
||||
```sh
|
||||
$ curl -s "http://localhost:8082/api" | jq .
|
||||
{
|
||||
"file": {
|
||||
"Frontends": {
|
||||
"frontend-traefik": {
|
||||
"Routes": {
|
||||
|
@ -321,16 +322,41 @@ $ curl -s "http://localhost:8082/api" | jq .
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"marathon": {
|
||||
"Frontends": {
|
||||
"frontend-marathon": {
|
||||
"Routes": {
|
||||
"route-host-marathon": {
|
||||
"Value": "marathon.docker.localhost",
|
||||
"Rule": "Host"
|
||||
}
|
||||
},
|
||||
"Backend": "backend-marathon"
|
||||
},
|
||||
},
|
||||
"Backends": {
|
||||
"backend-marathon": {
|
||||
"Servers": {
|
||||
"server-marathon-1": {
|
||||
"Weight": 0,
|
||||
"Url": "http://172.17.0.8:802"
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
* ```/api/backends```: ```GET``` backends
|
||||
* ```/api/backends/{backend}```: ```GET``` a backend
|
||||
* ```/api/backends/{backend}/servers```: ```GET``` servers in a backend
|
||||
* ```/api/backends/{backend}/servers/{server}```: ```GET``` a server in a backend
|
||||
* ```/api/frontends```: ```GET``` frontends
|
||||
* ```/api/frontends/{frontend}```: ```GET``` a frontend
|
||||
* ```/api/{provider}```: ```GET``` or ```PUT``` provider
|
||||
* ```/api/{provider}/backends```: ```GET``` backends
|
||||
* ```/api/{provider}/backends/{backend}```: ```GET``` a backend
|
||||
* ```/api/{provider}/backends/{backend}/servers```: ```GET``` servers in a backend
|
||||
* ```/api/{provider}/backends/{backend}/servers/{server}```: ```GET``` a server in a backend
|
||||
* ```/api/{provider}/frontends```: ```GET``` frontends
|
||||
* ```/api/{provider}/frontends/{frontend}```: ```GET``` a frontend
|
||||
|
||||
|
||||
## <a id="docker"></a> Docker backend
|
||||
|
|
Loading…
Reference in a new issue