Sign inSign up

onelove/backend

By onelove

•Updated about 8 years ago

Flask Backend

Image
0

2.0K

onelove/backend repository overview

⁠One Love REST API CircleCI Stories in Ready

This is the API part of One Love⁠ based on Python Flask.

⁠Contributing

If you are intresting in contributing to this project, be sure to visit the contributing page⁠. For easier development, take a look at the main One Love repository⁠.

⁠Usage

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.

⁠Swagger

To use swagger open Swagger UI⁠

Tag summary

Content type

Image

Digest

sha256:be107bc26…

Size

93.2 MB

Last updated

about 8 years ago

docker pull onelove/backend