Skip to content

anadoba/currency-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flow Currency Rates

Assignment description

You can run the solution by cloning this repository and executing sbt run Press Return to stop the app.

Application provides a basic index page with example endpoint invocations on http://localhost:9000/

API

Exposed API contains only GET requests and query parameters so it's convenient to use from a browser. Fixer platform connectivity is established under the hood - one can override used Fixer Access Key by setting FIXER_ACCESS_KEY env variable.

Currency rates endpoints

Currency rates monitoring

Libraries used

  • Akka HTTP - faster than Play Framework; there was no need to use for example templates, forms, database support etc
  • Akka Streams - ideal for endless source of data like a loop of currency rate requests for monitoring
  • WireMock - mock http server for unit tests
  • Mockito - useful methods for verifying interactions between the test objects
  • Play JSON - personal taste :)

About

Flow Currency Rates assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages