Skip to main content

Echo incoming requests

The Investigate OpenAPI mock server provides a debugging mechanism to identify integration issues due to invalid requests.

As explained in a previous section, specify the HTTP header Prefer: echo=true to get your request echoed in the response as an structured JSON document.

Given a basic PERSON_MATCH request, the following response will be returned.

Response body:

{
"http": {
"method": "POST",
"baseUrl": "",
"originalUrl": "/actions/people",
"protocol": "https"
},
"request": {
"params": {
"0": "/actions/people"
},
"query": {},
"cookies": {},
"body": {
"actions": [
{
"action": "PERSON_MATCH"
}
],
"person": {
"firstName": "John",
"middleNames": [
"David"
],
"lastNames": [
"Smith"
]
}
},
"headers": {
"accept-encoding": "gzip, deflate, br",
"accept": "*/*",
"authorization": "Bearer *****",
"content-length": "244",
"content-type": "application/json",
"host": "mock-investigate-api.gbgplc.com",
"prefer": "echo=true"
}
}
}