Simple currency conversion REST API with django rest framework.
- Install python3, then create virtualenv (optional).
- Clone the repo, then cd to the repo directory.
- Install requirements:
pip install requirements/local.txt
- Run the app locally:
python3 currency/manage.py runserver
Open http://localhost:8000/admin (user: admin, password: admin).
All available currencies for conversion are in the "Currencies" table. You can manually manage them.
All currencies rates are in the "Rates" table. To update rates use the following command:
python3 currency/manage.py update_rates.
You can run the tests as follows:
python3 currency/manage.py test.
Get all available currencies.
Get details for currency with NAME.
Get currency conversion result.