Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Feature Request] Export individual request #538

Closed
wayneworkman opened this issue Oct 23, 2017 · 16 comments
Closed

[Feature Request] Export individual request #538

wayneworkman opened this issue Oct 23, 2017 · 16 comments
Labels
E-good-first-issue Experience required: Beginner / New N-discussion Needs: Discussion N-help Needs: Help stale Bot: Stale Issue

Comments

@wayneworkman
Copy link

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

@gschier
Copy link
Contributor

gschier commented Oct 23, 2017

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.

@wayneworkman
Copy link
Author

@gschier I wouldn't know where to begin. I have not learned JS yet.

@gschier
Copy link
Contributor

gschier commented Oct 23, 2017

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.

@Kshmire
Copy link

Kshmire commented Oct 31, 2017

@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.

@gschier
Copy link
Contributor

gschier commented Nov 19, 2017

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:
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.

@gschier gschier added the N-discussion Needs: Discussion label Nov 19, 2017
@wayneworkman
Copy link
Author

wayneworkman commented Nov 19, 2017 via email

@wayneworkman
Copy link
Author

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.

@gschier
Copy link
Contributor

gschier commented Nov 20, 2017

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?

@stale
Copy link

stale bot commented Jan 19, 2018

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.

@stale stale bot added the stale Bot: Stale Issue label Jan 19, 2018
@stale stale bot closed this as completed Jan 26, 2018
@bernhardriegler
Copy link

bernhardriegler commented Feb 8, 2018

If you could write up some guidance, I will take a shot at this.

@jasonsemko
Copy link

jasonsemko commented May 14, 2019

@gschier still open for help on this? Can't let my postman co-workers take jabs at me for not having this feature!

@wayneworkman
Copy link
Author

wayneworkman commented May 14, 2019 via email

@gschier
Copy link
Contributor

gschier commented May 16, 2019

I'm still open to this if someone wants to pick it up 👌🏻

Sent with GitHawk

@gschier gschier added Accepted 👌 E-good-first-issue Experience required: Beginner / New N-help Needs: Help labels May 16, 2019
@jasonsemko
Copy link

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

@LilSebastian5000
Copy link

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

@tobiasr
Copy link
Contributor

tobiasr commented Sep 2, 2020

@gschier I'll have a go at this, if ok? I'll start by trying to complete solution 2, the simple, fully rendered version.

@wdawson wdawson closed this as completed Jun 30, 2021
@Kong Kong locked and limited conversation to collaborators Jun 30, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
E-good-first-issue Experience required: Beginner / New N-discussion Needs: Discussion N-help Needs: Help stale Bot: Stale Issue
Projects
None yet
Development

No branches or pull requests

8 participants