Simple API which returns the specified currency value for the specified date.
python3.11 -m venv venv
pip install -r requirements.txt
flask --app currency_api.py run --debug
pytest -v test_tools.py
We have only one endpoint:
/<date>/<currency>
For example:
http://localhost:5000/2023-11-10/SEK
It returns:
{
"currency": "SEK",
"date": "2023-11-10",
"value": 11.629
}