This is Flask based API part of One Love project.
We will happily accept pull requests that conform to our Contributing guidelines. For easier development, take a look at One Love Vagrant repository
To get a login token:
curl -k -H 'Content-Type: application/json' -H 'Accept: application/json' http://onelove.vagrant:5000/api/v0/auth/tokens -X POST -d '{"email": "[email protected]", "password": "Sekrit"}'
To use the token to get list of clusters:
curl -k -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Authorization: JWT <token>' http://onelove.vagrant:5000/api/v0/clusters
In the same way you can get other resorces/endpoints
In order to run a test. Run the following command in the repo directory.
$ docker-compose run --rm backend bin/test.sh
When the testing is finished you can get one of the following results:
- . test passed
- F your test failed
- E something really bad happend
To use swagger open Swagger UI