RESTful API for LXC and LXC WEB PANEL
apt install python3-lxc
pip install flask==0.10
pip install Flask-SQLAlchemy
python3 server.py
POST /api/v1/auth
Headers:
Content-Type: application/json
Body:
{
"username" : "admin",
"password" : "admin"
}
GET/POST/PUT/DELETE /api/v1/<route>
Headers:
Content-Type: application/json
Authorization: Bearer <auth key>
Body:
{
"foo" : "bar"
}