Currency conversion API: This application allows you to retrieve and view exchange rates from the initial startup of the application up to the present moment.
Build with Java Spring Boot Framework and PostgresQL
- GET
/symbols:- Returning all available currencies.
- GET
/exchanges/:- Returns all saved exchange rates
- GET
/exchanges/{date}:- Return exchanges rates by date
- Date format: YYYY-MM-DD (latest get current rates)
- Make sure you have Java 19 and Maven installed on your machine. You can download Java from the official Java website and Maven from Apache Maven.
- Make sure you have postgresql installed on your machine.
-
Close the project:
git clone https://github.com/micael-jerry/exchange-api.git cd exchange-api -
Install dependencies
mvn clean install
-
Configuration
- Create database with name:
exchange - Access the application.properties and uncomment and complete the fields
- And also add
api.keywhich you can get here after creating an account and using the free option
-
Run app
mvn spring-boot:run
- Get exchange rates from the desired base (default:
USD) - Currency conversion
- Filter by currency