f6092a18bd
WSGI application with a gunicorn running script. For reading and writing the JSON config file. E.g. with run with: python -m manager.server -b 127.0.0.1:9000 Get config with: curl --header "Accept: application/json" http://127.0.0.1:9000/config Get one setting with: curl --header "Accept: application/json" http://127.0.0.1:9000/your_setting Set config with: curl -H "Content-Type: application/json" -X POST -d 'your_json_config' \ --header "Accept: application/json" http://127.0.0.1:9000/config Set setting with: curl -H "Content-Type: application/json" -X POST -d '{"your_setting": value}' \ --header "Accept: application/json" http://127.0.0.1:9000/your_setting |
||
---|---|---|
.. | ||
__init__.py | ||
server.py | ||
wsgi.py |