This repository consists of client and server code comprising the example material for Practical API Security.
Clone this repository to your computer
git clone https://github.com/aenglander/practical-api-security-python-example-flask.git
Run a pipenv install:
pipenv install
Start a pipenv shell:
pipenv shell
-
Start the server
From Bash:
export FLASK_APP=server.py export FLASK_ENV=development flask run
From Windows:
set FLASK_APP=server.py set FLASK_ENV=development flask run
-
Run the client:
python client.py
-
The client response should be:
REQUEST: === No Request === RESPONSE: Decrypted Body: { "Hello": "World!" }