Skip to content

Latest commit

 

History

History
44 lines (43 loc) · 914 Bytes

File metadata and controls

44 lines (43 loc) · 914 Bytes
  1. Create new backend service with mocky with following payload.
{
    "Name": "Name123",
    "Status": "Accepted"
}
  1. Replace endpoint in line #16 in iterate-mediator-proxy.xml with new mocky endpoint.
  2. Add iterate-mediator-proxy.xml into the proxy service.
  3. 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