Skip to content
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

Partial interoperability with postman #52

Open
CaptainQuirk opened this issue Feb 20, 2018 · 2 comments
Open

Partial interoperability with postman #52

CaptainQuirk opened this issue Feb 20, 2018 · 2 comments

Comments

@CaptainQuirk
Copy link

Hi there,

Would it be possible to work on the following things to get a minimal interoperability with postman :

  • json export to the postman (or any other format that has wide adoption) collection format, with optional automatic export on buffer save.
  • external variable support in an environment file.

Thanks !

@diepm
Copy link
Owner

diepm commented Feb 22, 2018

I've heard of postman but not really used it. Could you elaborate your ideas a bit more (use cases, workflow...)? I can try with postman and see if it's feasible to implement. Thanks!

@CaptainQuirk
Copy link
Author

Hi,

Sorry for the delay in my response !

To elaborate a bit, postman is a GUI app that features REST route collections, exportable to a single json file. The postman collection format is supported by other REST client.

The GUI is a classical one.

  • On the left, a sidebar with collections (projects) containing folders (resources) containing individual routes
  • On the right, the main panel with the route method, path, headers, body

There's a concept of environment. The GUI exposes a view where you can create variables that can be used as tokens in various other places :

{
    "title": "{{title}}",
}

An environment can also be exported to a json file

There are of course numerous other features.

With that summary in mind, I would really much like to be able to :

  • Set a specific directory in a project as a REST collections repository
  • Create a hierarchy of subfolders corresponding to the one described above
  • Have a plugin function available to export this folder hierarchy to a postman collection file, with a setting allowing it to be done automatically when saving a file in this folder
  • Have a plugin function available to import a postman collection into the existing folder hierarchy
  • Have a way to create environment variables through a json file and have them replaced in routes, body, headers etc

I'm would be glad to work on this but I've written at most 2 functions in VimL in my whole life, so I would need some guidance !

Thanks in advance !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants