-
Notifications
You must be signed in to change notification settings - Fork 37
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
Recursive calls Examples #42
Comments
+1 |
2 similar comments
👍 |
👍 |
I've run into this also. My solution for the token was to get the token and then use the 'before' function to set the token in subsequent outgoing requests.
|
thanks @joehler !! that helped!... the only thing is that when running with --spec param, the api-easy log is misleading because I'm modifying the outgoing.uri and it shows the old one. |
I'm having a similar issue, I can't figure out how to pass a value from the previous call to the path of the next call. I want to POST an item them I want to do a DELETE with the id that was returned from the POST.
What am I doing wrong? |
It seems that the suite.del has already been initialized the the null value of the partId already and no further modification is do with it by the time it executes. The only way is to add this to the end of subsequent sequential calls (i.e. using next() ) by using suite.before to append the partId to the URL passed implicitly to suite.del. I am trying this now, since this would be a very common pattern, but I also need to restore/remove the appended id when I am done. |
this is a trick, but i'm posting anyway, in case someone has same issue :
|
Can you provide an example of recursive calls. I'm interested in the case where you, let's say authenticate a call to an API and then use the token returned for future calls.
Thanks!
The text was updated successfully, but these errors were encountered: