This app is a mock-pathfinder app. It can be used with the Mojaloop Account Lookup System (ALS) to store and retrieve parties by MSISDN.
To install the mock-als-oracle, clone this repository and cd into the mock-als-oracle directory. Run the following commands:
docker-compose build docker-compose up -d
To Configure ALS to use this Oracle, you will submit a post request to the ALS Admin endpoint for Oracles (http://account-lookup-service-admin.local/oracles). The body of the request will be something like this:
{ "oracleIdType": "MSISDN", "endpoint": { "value": "http:///switch/oracles", "endpointType": "URL" }, "currency": "USD", "isDefault": true }
To create a party, make a post request to http:///oracle/participants/MSISDN/. The body of the request is:
{ "fspId": "", "currency": "USD" }
To retrieve a party (and this will be done automatically by ALS once the Oracle has been registered), submit a get request to: http:///oracle/participants/MSISDN/. The mock-als-oracle will return the FSP ID and Currency for the party if it is found.