mlrdk / backend

One Love REST API and provisioning worker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

One Love REST API

Run Status Stories in Ready

This is Flask based API part of One Love project.

Contributing to One Love

We will happily accept pull requests that conform to our Contributing guidelines. For easier development, take a look at One Love Vagrant 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": "admin@example.com", "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

About

One Love REST API and provisioning worker

License:GNU General Public License v3.0


Languages

Language:Python 90.5%Language:HTML 8.1%Language:Shell 1.4%