Replies: 3 comments 10 replies
-
Hello! This has multiple ideas, I'l split them in multiple comments:
Yes, that sounds really useful for some usecases, such as knowing which requests ran successfully. While we're at it, we may as well add support for pulling headers from the response, since I've seen cases when some important data is saved in a response header, such as the LinkedIn API for creating posts, where after you create a Post, its ID comes in a header. How would you expect to declare that you want to pull the response code? As the UI is now, you need to write a JsonPath selector, which will always start with One: Add more things into Two: Modify the UI so that you choose the context that the JsonPath selector will be evaluated on. Do those sound like they would solve your usecase? The first option would be easier, the second one would be more elegant. Any preferences? Does the second one seem intuitive enough? For example, see the UI below. Does this clearly say "the selector |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
How do you imagine setting that? Would the default apply across ALL your requests? Sort of a "plugin config" that stated "whenever I open the Batch Requests dialog, the Delay field should be set to X"? If so, it's... kind of weird. The folks at Insomnia don't seem to provide a ready-made API for a plugin to declare that it has some config. I'd have wanted a "Settings" button to appear besides my plugin in the plugin list, but I couldn't see any such functionality. That being said, see this plugin for a sort-of workaround. They add settings that are collection-wide. That's one level below applying that to the whole Insomnia installation, but it may be good enough. Would a workspace-wide "configuration" option satisfy your need? |
Beta Was this translation helpful? Give feedback.
-
Hi again,
I recall you mentioned writing this to pull data and that's where the output to column map came from. I'm POSTing data so I already have that info, but would be great to store the response code (200, 401, etc) in a response column. I find if I dont set an output map in the batch dialog it does not iterate through the CSV so I have been selecting bogus fields to get it to go. I can get the response data in Insomnia already, so storing it in CSV is not critical, so maybe the option to bypass the requirement to select something would suffice.
Also, any simple way to set a default timer in the delay you implemented? Like 2 seconds?
Thanks again for a great plugin and being so responsive.
Jason
Beta Was this translation helpful? Give feedback.
All reactions