Export individual request #3591
Replies: 16 comments
-
That's a great idea. Would you be interested in submitting a PR to add that functionality? I'd be happy to help out with guidance if needed. |
Beta Was this translation helpful? Give feedback.
-
@gschier I wouldn't know where to begin. I have not learned JS yet. |
Beta Was this translation helpful? Give feedback.
-
No worries. The reason I ask is that it's a fairly easy feature but I probably won't be able to get to it for a while. Would be perfect for a first-time contributor. |
Beta Was this translation helpful? Give feedback.
-
@gschier Hi, I've been thinking about the same functionality for some weeks. I know some JS but I'm no expert. Anyways, I'm up for it if you provide me some initial guidance. I owe you a debt of gratitude after you implemented Custom Timestamps after just one personal mail. |
Beta Was this translation helpful? Give feedback.
-
Hey @Kshmire. Sorry, I missed your comment. I would be happy to provide guidance. However, I have one question that I think should be discussed before moving forward on this. What do we do with variables when exporting a single request?Solution 1: Solution 2: Any feedback here would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
I vote for rendering fully. It's only a single request, the person
receiving the export can add their own environment variables after they
import.
…On Nov 19, 2017 8:40 AM, "Gregory Schier" ***@***.***> wrote:
Hey @Kshmire <https://github.com/kshmire>. Sorry, I missed your comment.
I would be happy to provide guidance. However, I have one question that I
think should be discussed before moving forward on this.
What do we do with variables when exporting a single request?
*Solution 1:*
The easiest solution would be to export the request as-is but that could
cause problems. For example, the person who imports the request may not
have the necessary environment variables defined. This would also cause
problems if the request references data from another request (Response Body
Tag).
*Solution 2:*
Another potential solution would be to render the entire request before
exporting. This is what Insomnia does for code generation. This would make
it work wherever it's imported no matter what.
Any feedback here would be appreciated.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#538 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMsq77DGQdL8yPEGWhZ0bYFLggoqRlscks5s4D3SgaJpZM4QC6b->
.
|
Beta Was this translation helpful? Give feedback.
-
There's also the possibility of doing both solution 1 and 2. Check & see if the environment variables exist or not upon importing. If not, import the raw render. if so, use the env-vars that are available. Only use the env-vars if their names are an exact match. |
Beta Was this translation helpful? Give feedback.
-
Ya, I think fully rendered is the best and simplest option for now. Your suggestion of exporting both at once is interesting. However, it's probably worth doing the simple one first. @Kshmire, you still interested in taking a crack at this? |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
If you could write up some guidance, I will take a shot at this. |
Beta Was this translation helpful? Give feedback.
-
@gschier still open for help on this? Can't let my postman co-workers take jabs at me for not having this feature! |
Beta Was this translation helpful? Give feedback.
-
Have at it.
…On Mon, May 13, 2019, 7:48 PM Jason ***@***.***> wrote:
@gschier <https://github.com/gschier> still open for help on this? Can't
let postman off the hook that easily!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#538>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADFSV3ZDDAHDVJ5M3OJ4AXLPVID7HANCNFSM4EALU37A>
.
|
Beta Was this translation helpful? Give feedback.
-
I'm still open to this if someone wants to pick it up 👌🏻 Sent with GitHawk |
Beta Was this translation helpful? Give feedback.
-
As an update I reached out to @gschier about a week ago via Twitter to get more context and thoughts on this solution so I can implement this in the simplest and most efficient way first time around. Have yet to hear back. @gschier is there a better way to contact you and discuss? Only looking for a high level opinions/suggestions since you know the app better than anyone. Thanks |
Beta Was this translation helpful? Give feedback.
-
Any update on this? I'm surprised this still isn't a feature yet. It's unfortunate that the only workaround is to create an entirely new workspace just to put one single request inside it |
Beta Was this translation helpful? Give feedback.
-
@gschier I'll have a go at this, if ok? I'll start by trying to complete solution 2, the simple, fully rendered version. |
Beta Was this translation helpful? Give feedback.
-
I think it'd be helpful if I could right click one of my calls, and export it individually for one of my co-workers. With this, also the ability to import an individual call would be needed.
Thanks,
Wayne
Beta Was this translation helpful? Give feedback.
All reactions