An app to convert between currencies, built using HTTP4S, calls a 3rd party exchange rate service
To start the app simply do sbt run
, it will start on port 8080
(specified in main)
To call the app do
curl -X POST \
-d '{"fromCurrency":"GBP", "toCurrency":"EUR", "amount":110}' \
http://localhost:8080/api/convert
The app should return a body like
{"exchange":1.1842027355,"amount":130.262,"original":110}
This is done with sbt test