Simple REST API to create/read/delete secret keys.
- Python 2.7
- virtualenv (suggested)
Using GIT Clone
In your workspace
directory type:
- git clone -b master git@github.com:SMLuthi/kb_encryption.git kb_encryption
- mkvirtualenv kb_encryption
- cd into kb_encryption
- pip install -r requirements.txt --no-index
Start Encrypter API
- ./<repo root>/code/encrypter_app.py
Simple tests
- curl -i -H "Content-Type: applicationn/json" -X POST http://localhost:5000/keys/testUser -u "admin:password"
- curl -i -H "Content-Type: applicationn/json" http://localhost:5000/keys/testUser -u "admin:password"
- curl -i -H "Content-Type: applicationn/json" -X DELETE http://localhost:5000/keys/testUser -u "admin:password"