-
-
Notifications
You must be signed in to change notification settings - Fork 143
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] Import Postman's JSON #144
Comments
Hey, I've never used postman before (I used to use Insomnia tho). Can you please provide some documentation about that feature? Actually rest.nvim is able to import JSON files by using Cheers! |
If you mean that you can include a JSON file in the request body then that's not what I meant. This is a reference for its collections JSON https://schema.postman.com/collection/json/v2.1.0/draft-04/collection.json AFAIK it's a set of pre-made requests that you can import inside Postman and run them. You can also import "Environments" which essentially defines some variables that you can use inside your requests. Here are some references: Btw, I've been digging around a while ago, and found this https://github.com/postmanlabs/newman A Postman (official) CLI version written in Node. So I was thinking, instead of reinventing the wheel we could just write an adapter and wrap it inside rest.nvim, what do you think? And more in general, we could also provide support for other external tools instead of just curl, but it could make the plugin more complex. If you want to I could help you to write this adapter, but before digging in I want to know your opinion. Obviously this feature should be optional, in the sense that users should not be obliged to install newman for rest.nvim to work. |
Hey, thank you for the explanation and all the information provided, very appreciated!
Actually I've been thinking about this kind of stuff lately. I was thinking about also adding support for curlie and other http clients for the terminal, so postman one could be added. Increasing the plugin complexity doesn't mean make it harder to maintain if we retain a good codebase with easy to understand code whenever possible and take good design choices, also this would allow us to have a more flexible plugin that adapts to the needs and habits of the user. Here are some notes before beginning with this:
I'll try to set up a matrix room or something like that for rest.nvim development later so we can also have a more natural convo about this kind of stuff, communication is very important :p |
Sure! Ping me once you've done |
I'm having the same issue even on desktop. You may want to add me right away, this is my profile @c3n21:matrix.org |
We really need this feature in this awesome plugin! |
Hello, and thanks a lot for this amazing plugin!
I was wondering if you had the intention to add this feature to this plugin.
Postman allows you to export your queries and environments, and it would wonderful if rest.nvim could import them as well.
The text was updated successfully, but these errors were encountered: