The Currency Converter Service is a Spring Boot microservice designed to convert amounts from one currency to another.
- Convert currency from one to another
- Mocking external service responses using Mountebank for testing
- JDK 11 or later
- Gradle 6.x or later
- Docker
./gradlew build
./gradlew bootRun
docker-compose up -d
To convert currency, make a GET request to the /convert
endpoint with the following mandatory query parameters:
amount
: The amount to convert.from
: The currency code to convert from.to
: The currency code to convert to.
curl "http://localhost:8080/convert?amount=100&from=USD&to=EUR"
⭐ Star this repository if it helped you!