- Create new backend service with mocky with following payload.
{
"Name": "Name123",
"Status": "Accepted"
}
- Replace endpoint in line #16 in iterate-mediator-proxy.xml with new mocky endpoint.
- Add iterate-mediator-proxy.xml into the proxy service.
- Evoke the service with following JSON payload by calling to "https://localhost:8243/services/iterate_proxy".
[{
"Name": "Name1",
"Id": 1
},
{
"Name": "Name2",
"Id": 2
},
{
"Name": "Name3",
"Id": 3
}]
In case of SSL error while using curl, use -k option with curl command
curl -X POST \
https://localhost:8243/services/iterate_proxy \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '[{
"Name": "Name1",
"Id": 1
},
{
"Name": "Name2",
"Id": 2
},
{
"Name": "Name3",
"Id": 3
}]' -k