Skip to content

sukanya-pai/currency-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Currency Converter App

Scope Covered:

  • Retrieve ECB reference rate for currency pair eg: USD/EUR, HUF/EUR
    curl --location --request GET 'localhost:8080/currency/exchangerate?currency=HUF&baseCurrency=EUR'
    
  • Retrieve Exchange rates for other pairs HUF/USD
    curl --location --request GET 'localhost:8080/currency/exchangerate?currency=HUF&baseCurrency=USD'
    
  • Convert amount of given currency to another, for example: 15 EUR = ? GBP
    curl --location --request POST 'localhost:8080/currency/convert' \
      --header 'Content-Type: application/json' \
      --data-raw '{
      "targetCurrency":{
      "unit":"EUR",
      "value":15
      },
      "baseCurrencyUnit":"GBP"
      }'
    
  • Retrieve List of supported Currencies.
    curl --location --request GET 'localhost:8080/currency/supported'
    

About

Currency converter project repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages