- Test using Postman
- Test from the CLI
- Open Postman
|
Postman |
- Open collection in docs folder
|
Import collection into Postman |
- Select Request Endpoint-Submodel
|
Select a request |
- Invoke Send to test the interaction
|
Invoke Send to test the interaction |
From the directory root, execute in the CLI:
# login/pass as specified in .compose-envs/ files
curl -u admin:admin \
--header "Content-Type: application/json" \
--request POST \
--data @./docs/postman/sample_requests/sample_interaction.json \
http://localhost:2000/interaction \
| node <<< "var o = $(cat); console.log(JSON.stringify(o, null, 4));"
If everything is OK, the above command should return a JSON formatted reply (as shown in Postman above).