A Java SDK to help implementing the Open Banking standard : https://www.openbanking.org.uk/read-write-apis/ . This project is compiled with JDK 8.
Many of the classes are generated from OB Swagger documentation. When a new version of OB API is released, the following steps are performed:
- Download the Swagger json files from OB Spec pages (e.g. for 3.1.1 accounts: https://openbanking.atlassian.net/wiki/spaces/DZ/pages/999622968/Account+and+Transaction+API+Specification+-+v3.1.1#AccountandTransactionAPISpecification-v3.1.1-SwaggerSpecification)
Note: there are currently swagger files for Accounts, Payments, Funds Confirmation, ASPSP Callback and TPP Events - more may be available in future releases).
- Download
swagger-codegen-cli-2.4.5.jar
- Run
java -jar swagger-codegen-cli-2.4.5.jar generate \ -i {your_json_file} \ -DuseBeanValidation=true \ -Dmodels \ --model-package uk.org.openbanking.datamodel \ --group-id com.forgerock.openbanking \ --artifact-id openbanking-sdk \ -l java \ --library resttemplate \ -o generated
- Check the generated files and copy them into appropriate source directory. Do not overwrite existing files.
- Remove Links, Meta, OBError1 and OBErrorResponse1 - we use shared generic versions of these classes.
- Repeat generation for each new swagger json file
- If using Intelij, run format and optimise imports on newly generated files.
- Increment the major or minor version in pom.xml
- Run build to ensure everything compiles and copyrights are generated for new source files.
- Commit and raise PR.
This project is built and released to maven using Travis CI. When a change is merged to master branch, Travis CI will increment the version, build the project, sign the release artifacts and release it to maven central (https://oss.sonatype.org). We no longer use Bintray in this project.
License: CDDLv1.0
License URL : https://opensource.org/licenses/CDDL-1.0