Insomnia: Multiple proto files

Created on 17 Dec 2020  ยท  7Comments  ยท  Source: Kong/insomnia

Is your feature request related to a problem? Please describe.
Currently Insomnia doesn't support multiple *.proto files for gRPC. Which breaks our flow 'cause we've multiple files (for services, for events and for models). As you might guess some models(messages in terms of gRPC/protobuf) are not in the same file as services.

Describe the solution you'd like
Having an ability to select few files will resolve our problem. Looks like multiselect during request creation is more than enough (and ability to use gRPC methods from any file of course).

Describe alternatives you've considered
Still using autogenerated clients from terminal or other UI-based alternatives.

Additional context
nothing to add.

accepted feature request protocogrpc

Most helpful comment

Great! Planned for the next release in early 2021 ๐Ÿ˜Š

All 7 comments

Hi @cristaloleg! It's interesting that you mention multi-select, we can definitely explore that as an avenue in the future.

We have a task in place for early Jan to work through supporting a root proto pattern for multiple proto files, where the main proto file root.proto imports every other file used by the project. I have a PoC that works in Insomnia, and just need to build some UI on top of it. ๐Ÿ™‚

Would this be suitable with your workflow?

Yep, sounds exactly what we would like to see!

Our proto directory looks like this:

โฏ exa --tree protos 
protos
โ”œโ”€โ”€ events.proto
โ”œโ”€โ”€ model.proto
โ””โ”€โ”€ svc.proto

Great! Planned for the next release in early 2021 ๐Ÿ˜Š

Just to be 100% clear, does this require a single "root" proto, where all of the rest are in that tree?

We have a use case where we have every proto in a single parent folder, but not all of the protos are necessarily in the same import tree.

Hi @loganintech can you show an example? tree structure or so

Sure, here's a subset. Basically, the "connection" protos will include models, but aren't related to eachother.

โ”œโ”€โ”€ atoplevel
โ”‚  โ”œโ”€โ”€ connection
โ”‚  โ”‚  โ”œโ”€โ”€ service1
โ”‚  โ”‚  โ”‚  โ””โ”€โ”€ service1.proto
โ”‚  โ”‚  โ””โ”€โ”€ service2
โ”‚  โ”‚     โ””โ”€โ”€ service2.proto
โ”‚  โ”œโ”€โ”€ models
โ”‚  โ”‚  โ”œโ”€โ”€ service1
โ”‚  โ”‚  โ”‚  โ””โ”€โ”€ service1.proto
โ”‚  โ”‚  โ”œโ”€โ”€ service2
โ”‚  โ”‚  โ”‚  โ””โ”€โ”€ service2.proto

@loganintech thanks for that, the overall structure is not finalised yet so I'll keep this in mind when we start work on it!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tmaiaroto picture tmaiaroto  ยท  4Comments

chrisvis picture chrisvis  ยท  4Comments

kalinchernev picture kalinchernev  ยท  4Comments

isobit picture isobit  ยท  3Comments

oliverjanik picture oliverjanik  ยท  3Comments