Skip to content

bobbyrauchenberg/exchangeRateAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExchangeRateAPI

An app to convert between currencies, built using HTTP4S, calls a 3rd party exchange rate service

Running the app

To start the app simply do sbt run, it will start on port 8080 (specified in main)

Calling the app

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}

Running the tests

This is done with sbt test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages