Update api base path

This commit is contained in:
Gianluca Arbezzano 2017-08-08 23:08:42 +02:00
parent f680b4907d
commit 918f1cb3c0
No known key found for this signature in database
GPG Key ID: 9505D2809E1D6180
2 changed files with 15 additions and 4 deletions

View File

@ -80,14 +80,25 @@ scale it can call the outscaler to persist the right action
```sh ```sh
curl -v -d '{"direction": true}' \ curl -v -d '{"direction": true}' \
http://localhost:8000/handle/infra_scale/docker http://localhost:8000/v1/orbiter/handle/infra_scale/docker
``` ```
Or if you prefer Or if you prefer
```sh ```sh
curl -v -X POST http://localhost:8000/handle/infra_scale/docker/up curl -v -X POST http://localhost:8000/v1/orbiter/handle/infra_scale/docker/up
``` ```
You can look at the list of services managed by orbiter:
```sh
curl -v -X GET http://localhost:8000/v1/orbiter/autoscaler
```
Look at the health to know if everything is working:
```sh
curl -v -X GET http://localhost:8000/v1/orbiter/halth
```
## Autodetect ## Autodetect
The autodetect mode starts when you don't specify any configuration file. The autodetect mode starts when you don't specify any configuration file.

View File

@ -9,6 +9,6 @@ ps:
docker service ls docker service ls
docker stack ps stack docker stack ps stack
scale-up: scale-up:
curl -X POST -v http://$(IP):8081/handle/autoswarm/stack_micro/up curl -X POST -v http://$(IP):8081/v1/orbiter/handle/autoswarm/stack_micro/up
scale-down: scale-down:
curl -X POST -v http://$(IP):8081/handle/autoswarm/stack_micro/down curl -X POST -v http://$(IP):8081/v1/orbiter/handle/autoswarm/stack_micro/down