pb33f / wiretap

The world's coolest API Validation and compliance tool. Validate APIs against OpenAPI specifications and much more
https://pb33f.io/wiretap/
Other
125 stars 18 forks source link

Proxying different urls #104

Open emilien-puget opened 8 months ago

emilien-puget commented 8 months ago

Is there a way to proxy different urls to different backends?

I tried setting up multiple instances of wiretap in a docker compose but the monitoring webpage displays the same content

daveshanley commented 8 months ago

Can you help me understand the use case? Right now wiretap is designed to proxy to a single host, but you can choose to rewrite as many paths as you need on that endpoint.

What would you like to see? How would you like to configure it and what would you expect the outcome to be?

emilien-puget commented 8 months ago

i have a backend that talks to multiple backends and i would have like to have the possibility to have a wiretap before all of those backend

daveshanley commented 8 months ago

Got it, It will require a little thinking as the the logic is all wired up for a single endpoint at the moment, but there is no reason why it cannot be expanded to multiple.

I'll need to think about how I can make it support multiple configs for each endpoint, and what that would look like etc.