Artifact 2f2cc31cd692f98239f6909bac1a51f447b5ddf4:
- File wiki_references/2017/software/banking/Interledger/src_from_GitHub/the_repository_clones/java-spsp-client-spring/README.md — part of check-in [3d7c129ddd] at 2018-03-21 18:18:26 on branch trunk — banking & unclassified_references (user: martin_vahi, size: 1747) [annotate] [blame] [check-ins using] [more...]
Interledger SPSP REST client (Java)
Interledger Simple Payment Setup Protocol REST client.
A Java client implementing the SPSP api simple-payment-setup-protoco.
Develop
Dependencies
The project is setup to find project dependencies in the same directory so the easiest way to work on the code is to fetch the dependencies as-is from GitHub.
$ git checkout https://github.com/interledger/java-crypto-conditions.git
$ git checkout https://github.com/interledger/java-ilp-core.git
Gradle/Maven
The project supports both Gradle and Maven build tools. A special Gradle task is defined which will generate a POM file for Maven.
$ gradle writePom
CheckStyles
The project uses Checkstyle for consitency in code style. We use the Google defined Java rules which can be configured for common IDE's by downloading configuration files from the GitHub repo.
Use
The library adheres to the interfaces in the Interledger Protocol Core library. The client is instantiated with a RestTemplate for autowiring, or can be constructed directly.
SpspService service = new SpringSpspClientService(restTemplate);
Receiver response = service.query(URI.create("http://red.ilpdemo.org/api/receivers/alice"));
TODO
[ ] Fix Checkstyle issues
## Contributors
Any contribution is very much appreciated! [![gitter][gitter-image]][gitter-url]
License
This code is released under the Apache 2.0 License. Please see LICENSE for the full text.