Reference Response Values in other requests (chaining)
Feature Request
You should be able to pull values from a response's headers/body in order to use in other requests (like variables)
You should be able to pull values from a response's headers/body in order to use in other requests (like variables)
Sign in to leave a comment.
If I understand correctly, you want "Request Chaining" which is on the roadmap. I'm going to merge this request with that ticket
I made a video trying to explain better https://vimeo.com/955788569 but I would say my problem is not understanding how to save the access token from the first route to the environment so that the second protected route requesting the bearer token will work. Thanks a lot
Glad I found this open issue and learned that is in progress. After the OpenAPI Import feature release, adding the ability to reference response values in other requests would allow me to complete my full detachment from Postman and stay happy with Yaak.
Thank you for all you're doing putting this tool together.
Hamilton Chevez amazing! Just finishing up some work on the plug-in system before this can happen, but it's next up!
Gregory Schier Thanks for getting this out!
Not sure if its something to improve on down the line.
My flow is generally just login in with one endpoint and then copy/pasting that token into the auth bearer header.
With the helper video you shared I had not realized that it was only for GraphQL that had the bottom variables section and I was lost for a while figuring out how bring that up for a JSON request. Turns out I just had to type the function response() out. I also stumbled upon this too on the Token field, since all text displays as the hidden dot text I thought there was no way of referencing it until I I finished typing out the function name.
So maybe a few other videos for other work flows would be nice.
Otherwise, thanks for all you do!
Hamilton Chevez thanks for the great feedback! It's indeed a very early release so there's still some work to do in order to improve usability and discoverability. And definitely docs!
This is now available in the 2024.8.0-beta.3! https://yaak.app/blog/2024.8.0-beta.1
Gregory Schier Quick video example to demo this?
Bharat Mandava https://x.com/yaakapp/status/1826723493674975661
🥳 https://yaak.app/blog/2024.8.0
It's possible to reference a response header? I only managed to reference a response body field
Hello, how can I use timestamp in Yaak? @Greg Schier
Can you explain what you mean? If you want to generate a timestamp, you can try the faker plugin
https://github.com/mountain-loop/yaak-plugin-faker
Yes, I want something like this, but I couldn't find anything like faker.time.currenttime.