Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 523 Bytes

readme.md

File metadata and controls

40 lines (34 loc) · 523 Bytes

Currency API

Simple API which returns the specified currency value for the specified date.

Local setup

python3.11 -m venv venv
pip install -r requirements.txt

Launch the app

flask --app currency_api.py run --debug

Tests

pytest -v test_tools.py

Endpoint

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
}