Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.23 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.23 KB

Open Bank API client implemented with Spring Boot

This is an OBP Client API using Spring Boot 1.4.x.

Prerequisites

You need to obtain an API key, username and password for the OpenBank sandbox you're planning on using. With these at hand, update application.properties with the values

Code

The code is organized between main and test directories. The tests are covering the following functionality:

  • Authentication
  • Get account details
  • Get transactions for an account
  • Tag transactions

Dependencies

The single dependency is on a live OBP sandbox that needs to run in order for the tested functionality to be successful. This sample project is using the version 2.2.0 of the OBP API. It shouldn't be difficult to use a different API version with the caveat that some of the entities must be adapted to match the data in the target API version. Internally, the project is using Lombok to simplify the code and the Joda Money API for representing monetary values.

Test

Run all tests with: ./gradlew clean build

Run

The standard command ./gradlew bootRun will start a Tomcat container running on port 8080. No end-points are configured at the moment, please rely on tests to check functionality.