FI-API is a RESTful interface to the command line FI library written in Python. It dynamically generates JSON endpoints for all functions in the FI module. When a new function is added to the FI module it is automatically reflected in this repository and should be reachable as a new JSON endpoint.
git clone https://github.com/bbusenius/FI-API.git
Create a virtual env and install the requirements with:
pip install -r requirements.txt
pip install -r requirements_dev.txt
env FLASK_APP=app.py flask run
Visit the site at http://127.0.0.1:5000
python -m pytest
docker build --no-cache -t ubuntu-fi-api .
docker run -d -p 1337:80 ubuntu-fi-api
You should now see the site at http://localhost:1337
Get a list of possible endpoints:
Example API call:
http://localhost:1337/json/savings_rate?take_home_pay=6500&spending=1900
Returns:
70.76923076923077