A basic RESTful API for `PowerAdmin`_
- Install dependencies
apt-get install python3 python3-pip python3-virtualenv virtualenv python3-dev libmysqlclient-dev libsasl2-dev libldap2-dev
- Create and activate virtualenv
virtualenv -p `which python3` env
source env/bin/activate
- Install python dependencies
make install
# or for development
make install_dev
Use poweradmin/settings_example.py as basis for your configuration.
You can activate by using DJANGO_SETTINGS_MODULE
https://docs.djangoproject.com/en/1.11/topics/settings/#designating-the-settings
You can browse the api with swagger by opening host name (e.g. http://localhost:8000).
For authentication use api-token-auth call and assign username and password. You will receive a JWT token. Copy this token and click on Authorize.
As api_key assign JWT token and login. You should now see a v1 api tree.
PowerAdmin REST API is licensed under GPL-3 or later following license model of PowerAdmin it is based on.