A Flask App for exploring the APIs.
Requires Python 2.7, Flask, Requests, virtual environment
Install relies on pip and virtualenv
easy_install pip
(if not installed)pip install virtualenv
cd <location of local API-CLIENT github repo>
virtualenv venv
- activate the virtual environment:
source venv/bin/activate
(osx/*nix) -OR-venv\scripts\activate
(windows) pip install -r requirements.txt
(this installs all the dependencies)deactivate
- Open a command line with administrative permissions and enter the following commands:
cd <location of local API-CLIENT github repo>
source venv/bin/activate
(osx/*nix) -OR- venv\scripts\activate
(windows)
gunicorn run-api:app
(gunicorn used in lieu of dev server for multi-thread capability)
- Open browser http://localhost:8000/get_dat_json
- Enter URI:
http://my.api.v01/resource
- Enter Params:
{"ids":"771,496"}
- Play with your data
deactivate
(when finished)