This project provides an API gateway to the ilp-service microservice. It supports methods to query, quote,payment request as specified below.
Methods: Query, Quote, Payment request, Invoices (create and get) to ILP-SERVICE API and receive a response via REST
Reference: ReadMe file in corresponding ILP project
Contents:
Project is built using Maven and uses Circle for Continous Integration.
- https://www.mulesoft.com/platform/studio
- Clone https://github.com/LevelOneProject/interop-scheme-adapter.git to local Git repository
- Import into Studio as a Maven-based Mule Project with pom.xml
- Go to Run -> Run As Configurations. Make sure interop-scheme-adapter project is highlighted.
- https://developer.mulesoft.com/download-mule-esb-runtime
- Add the environment variable you are testing in (dev, prod, qa, etc). Open /conf/wrapper.conf and find the GC Settings section. Here there will be a series of wrapper.java.additional.(n) properties. create a new one after the last one where n=x (typically 14) and assign it the next number (i.e., wrapper.java.additional.15) and assign -DMULE_ENV=dev as its value (wrapper.java.additional.15=-DMULE_ENV=dev)
- Download the zipped project from Git
- Copy zipped file (Mule Archived Project) to /apps
- Run As Mule Application with Maven
- CD to /bin -> in terminal type ./mule
pom.xml and circle.yml can be found in the repo, also linked here
Below are the RAML and OpenAPI spec for reference
This is currently hosted as a service in the URL that looks like this: http://<awshost:port>/spsp/client/v1/console/ , the OpenAPI docs and mule console details can be found here and here
Server path to logs is: <mule_home>/logs/interop-scheme-adapter.log for example: /opt/mule/mule-dfsp1/logs/interop-scheme-adapter.log
Currently the logs are operational and include information such as TraceID and other details related to the calls or transactions such as path, method used, header information and payer/payee details.
Java Unit Test exist for the project and include test for:
- Invalid path should return 404
- Query
- Payment
- Run Unit Tests
- Test API with Anypoint Studio in APIKit Console
- Verify Responses in Studio Console output
Tests are run as part of executing the Maven pom.xml as mvn clean package. Also, tests can be run by running com.l1p.interop.spsp.SpspClientProxyFunctionalTest java class as JUnit Test.