The app is based on Spring Boot Restful API. H2 Database Engine used as memory DB. H2, JPA and Web dependencies included on Spring Initializr. IntelliJ IDEA used as IDE. The code structure designed on MVC pattern (separation of concerns).
-
Run the .jar file from: ~\exchangeApi\target\exchange-0.0.1-SNAPSHOT.jar
-
To get an exchange rate between two currencies, GET http://localhost:8080/exchange?from=GBP&to=TRY
-
Calculate an amount of exchange rate with Conversion API, Example: POST http://localhost:8080/convert?from=USD&to=GBP&amount=50
-
List a transaction with its ID, Get by transaction ID: GET http://localhost:8080/conversion/1 List of all conversions: GET http://localhost:8080/conversion-list
-
Used rates api for the data https://ratesapi.io/documentation/
-
Resource not found exception class included.