This is a simple API that loads currency rates from NBRB.
App is running on port 8080
and uses H2 in-memory database.
This repository utilises Github Actions
to build the application on PR and
commits.
This repository follows checkstyle rules.
- Clone the repository
- Run
mvn clean install
to build the project - Run
mvn spring-boot:run
to start the application
GET /api/v1/currencies
Parameter | Type | Description |
---|---|---|
date |
string |
Required. Date in format yyyy-MM-dd |
abbreviation |
string |
Required. Currency abbreviation |
POST /api/v1/currencies
Parameter | Type | Description |
---|---|---|
date |
string |
Required. Date in format yyyy-MM-dd |
GET /api/v2/currencies
Parameter | Type | Description |
---|---|---|
date |
string |
Required. Date in format yyyy-MM-dd |
abbreviation |
string |
Required. Currency abbreviation |
POST /api/v2/currencies
Parameter | Type | Description |
---|---|---|
date |
string |
Required. Date in format yyyy-MM-dd |