Skip to content

Commit

Permalink
readme update regarding mapping Engine
Browse files Browse the repository at this point in the history
  • Loading branch information
asaccool committed Aug 17, 2021
1 parent fb9681c commit 53d66a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,18 +190,19 @@ The purpose of the EPI Mapping Engine is to process various types of messages re

### Configuring Domain for ApiHub Mapping Engine usage

1. After finishing [Step 2: Setup credentials for Issuer and Holder](#step-2-setup-credentials-for-issuer-and-holder) from [Running section](#running) section please copy
the desired wallet identifier from **User as Holder** page in wallet app.
![alt text](wallet_identifier.png)
2. Find the domain configuration in ```/apihub-root/external-volume/config/domains/<domainName.json>```
and ```modify mappingEngineWalletSSI``` property with the wallet identifier and ```bricksDomain``` property with wallet subdomain value.
1. Find the domain configuration in ```/apihub-root/external-volume/config/domains/<domainName.json>```
and modify or add the ```bricksDomain``` property with wallet subdomain value.
![alt text](domain_config.png)
3. Restart the server.
Now the ApiHub Mapping Engine is configured for processing messages from external sources through ```/mappingEngine/:domainName"``` endpoint via the PUT HTTP verb.
Now the ApiHub Mapping Engine is configured for processing messages from external sources through ```/mappingEngine/:domainName"``` endpoint via the **PUT** HTTP verb.

### Testing ApiHub Mapping Engine
In order to test the mapping engine functionality it can be used any API testing tools.

Make a request like this ``` PUT http://localhost:8080/mappingEngine/<domainName> ```

Set header **token** on the request with the value of the WalletSSI copied from the Holder page after the Issuer-Holder credentials workflow completed.

Please note that the content should be on the request body as a raw string containing the JSON message.
JSON messages examples could be downloaded from the import section page in the wallet app.

Expand Down
Binary file modified domain_config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 53d66a4

Please sign in to comment.