-
Notifications
You must be signed in to change notification settings - Fork 6
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
How to make use of variable to remember the response and use it in subsequence command? #10
Comments
A solution to this chaining problem is still in the works; will update here once it's ready. |
Quick update: Started an experimental branch goja, to try to embed a JS processor to enable chaining requests. Also delegating to a scripting lang, is in line with design philosophy of "delegate to mature tools". By the way, this is pure JS - so we won't allow importing arbitrary npm modules. Why JS:
For simple use case mentioned above in the thread, one barely has to understand JS to process some JSON and store a variable Some example files with both Requester + Processor (JS) blocks: Trivial example:
Advanced:
Any early thoughts/comments/suggestions welcome. PS: Implementation still in progress |
For application using JWT token this is the typical use case, like this in my current curl script:
The first line gets the token from the response and then use the token to GET the result from the second line request.
The text was updated successfully, but these errors were encountered: