Skip to content

jverwohlt/lxc-rest

 
 

Repository files navigation

LXC Web Panel

RESTful API for LXC and LXC WEB PANEL

Requirements

apt install python3-lxc
pip install flask==0.10
pip install Flask-SQLAlchemy

Run

python3 server.py

Auth

POST /api/v1/auth

Headers: Content-Type: application/json

Body:

{
  "username" : "admin",
  "password" : "admin"
}

Usage

GET/POST/PUT/DELETE /api/v1/<route>

Headers:

Content-Type: application/json
Authorization: Bearer <auth key>

Body:

{
  "foo" : "bar"
}

About

REST API for LXC and LXC WEB PANEL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%