Skip to content

b101010/currency_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages