Question

TalkTalk
TalkTalk
GB
TalkTalk
Posted: May 4, 2018
Last activity: Dec 26, 2019
Last activity: 26 Dec 2019 2:52 EST
Closed
response_GET pagelist/page issue
Hi, I am in a bit of a pickle with my REST connector requirements.
I have an endpoint, which returns me a list of results based on my request according to the following schema:
Show More
Hi, I am in a bit of a pickle with my REST connector requirements.
I have an endpoint, which returns me a list of results based on my request according to the following schema:
[ {
"something"
:
"lalala"
}]
This is no problem, as when run with Integration wizard, it created respone_GET as a pagelist and all the instances of results are appended correctly.
However, when 400 Response is received for Bad request, it should accept the response with the following schema:
{
"something"
:
"Invalid something"
}
Now, on a tracer I get an error saying that I get internal error that it is not able to map to response_GET.
I understand that this is because response_GET is of type Pagelist rather than a single page.
On my Connect REST rule, we are mapping to json with map key response_GET.
Is there some sort of workaround to support both responses?
Thank you for your help
Show Less