Question

5
Replies
1984
Views
Close popover
Karolina Davis (_Karolina@TT)
TalkTalk

TalkTalk
GB
_Karolina@TT Member since 2015 12 posts
TalkTalk
Posted: May 4, 2018
Last activity: December 26, 2019
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:

[ {
"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
Data Integration
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.