Hello,
I would like to use this sequence of requests into an executeBatch request but the second request return an error :
INPUT:
[{
"key": "mystreams",
"request": {
"method": "GET",
"endpoint": "/people/11065/streams"
}
}, {
"key": "mystreamactivity",
"request": {
"method": "GET",
"endpoint": "${mystreams:$.list[0].resources.activity.ref}?filter=notifications"
}
}]
OUTPUT :
{
...
}
{
"id" : "mystreamactivity",
"href" : "${mystreams:$.list[0].resources.activity.ref}?filter=notifications",
"status" : 400,
"error" : {
"message" : "Bad Request. Improper URI syntax.",
"code" : "400"
}
Unfortunately, you cannout use url parameter (?filter=notifications) in this kind of requests.
Please try ${mystreams:$.list[0].resources.activity.ref} only...
I think I have run into this restriction as well and the only way is to make several requests or request more data than you need.
Thanks
Jens