This is implemented by open JDK 15 and spring boot 2.4.3
This demo API is hosted at Heroku. To test the API, Swagger UI is added to test easily.
https://currency-converter-api-demo.herokuapp.com/swagger-ui/#
There are 2 GET RESTful API exposed. Please try it by the above Swagger UI or simply by curl
curl -X GET "https://currency-converter-api-demo.herokuapp.com:443/api/v1/revisions/all-supported-currency?baseCurrency=eur" -H "accept: application/json"
curl -X GET "https://currency-converter-api-demo.herokuapp.com:443/api/v1/revisions/exchange-currency?localCurrency=eur&exchangeCurrency=usd&amount=5" -H "accept: application/json"