Restfox
Restfox copied to clipboard
[Feature Request] - Pre and post script effect
Hello. First, Restfox is a great tools and I'm loving it, because is fast and easy to work. Want to request a feature, that is one of the great features of Thunder Client, the possibility to set env and other thing or run other requests after or before a selected request is run.
A simple example is, i have a token base authentication system, that i need to request a login and collect the response token and pass it to request by a env variable token. But after sometime the token expire and i have to stop, fetch the login again and them update manually the token to keep testing the endpoints.
The screen example:
At the condition dropdown, there is some options: Run Always Run Once Run Every X minutes When Variable is Empty When Variable is None
There is also a script part but is much more complex, if you are curious there is the link: https://github.com/rangav/thunder-client-support/blob/master/docs/filters.md
That feature would be awesome and would speed-up testing 100x.
the possibility to set env and other thing or run other requests after or before a selected request is run.
This is already present and can be accomplished with Plugins. Please watch this video: https://www.youtube.com/watch?v=3cOQPm43Wus.
Let me know if you think something is missing from this. I'll be happy to add it, as long as it will be helpful to most people.
Update: I guess my comment answers only the 1st question you asked. But the 2nd feature that you requested seems to be a bit different. It allows you make one request depend on another, or so I assume. I'll have to think about this.
I see. That is great but if it was a dedicated tab, i think that would add a lot of value to the software, since would allow to more direct and versatile manipulation for the request. For example it is a upgrade of Thunder Client when comparing to Insominia. But if you judge that is not worth, no problem.
Also consider adding the videos to the front page, so users have a easier time learning this features.
Thanks for the link.
I've been thinking of making the plugins a tab in the request panel itself, so your point is valid.
I've never used Thunder Client. Will be taking a look at it and see if I can add the features you've asked.
The linked video is actually already present in the README of this github repo but I guess it's easily missed. People are used to the script terminology, so plugins might seem like something else.
+1 for having plugins moved as a tab, because plugins when right clicking seems to be a hidden from eyesight.
Also, maybe rename plugins to scripts
because plugins refers to something external to install.
We can't remove Plugins from the right click menu because a folder can have also have plugins. But a tab will be coming soon.
Also I have thought of renaming Plugins to Scripts recently but a lot of the exported data and the file workspaces has plugins in its filenames and inner values. Initially the plan was that Plugins would have capabilities to extend Restfox and could be installed from outside. But then I didn't find time to develop it further.
We can't remove Plugins from the right click menu because a folder can have also have plugins. But a tab will be coming soon.
Also I have thought of renaming Plugins to Scripts recently but a lot of the exported data and the file workspaces has plugins in its filenames and inner values. Initially the plan was that Plugins would have capabilities to extend Restfox and could be installed from outside. But then I didn't find time to develop it further.
I see, thank you for taking the time for seeing the users' perspective. Maybe it should a brand new feature then. Script tabs so there is no breaking change.
For functionality extension, I think it should be defined
Just implemented the Script tab:
This will be available in the next release.