-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would like to be able to pass JSON list retrieved from one API to another #791
Comments
Pretty sad it's not available yet as it seems like a pretty common scenario when working with apis (still I'm very grateful to hurl devs 🙏) . I have the exact same need as daniel. In my workflow I need to chain the whole json body/ parts of it from one request to another. Is there any workaround to achieve the same ? Maybe by storing the json body response in a temporary file and re-using it somehow ? |
If you need to capture / reuse the whole body of a response, this is rather simple, you can just capture the body of a response and reinject it. For instance:
I think it should work |
Thanks so much for your help, I confirm it works! But one needs to set |
Yes or you can use a
|
I believe this is issue is adjacent to but different from #790 and #347.
I have an API from which I can retrieve a list of objects. I can extract from that API's response a list which I would like to submit to another API. What I would like to do looks roughly like this:
What I am finding is that this is impossible because the collection value is not allowed to be rendered:
I sort-of understand why this is the case, but on the other hand, the data came from JSON, and clearly can be rendered to JSON, so the limitation here seems slightly arbitrary. I guess the problem is that there is no syntax to tell it that the data should be rendered out as JSON?
In my ideal world, this collection would render to JSON, and I could use this value in the second API call. Thanks!
The text was updated successfully, but these errors were encountered: