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

Multiple swagger docs on different ports #5122

Open
GimignanoF opened this issue Jan 15, 2019 · 1 comment
Open

Multiple swagger docs on different ports #5122

GimignanoF opened this issue Jan 15, 2019 · 1 comment

Comments

@GimignanoF
Copy link

I have a bunch of services running on the same domain but on different ports. If i run each service individually in a local environment i can see the swagger ui generated as well, however if i have, for instance, 2 services, one on port 5000 and one on port 5001, only one of them will show me the swagger ui, the other will throw an error. So is there a way to show different swagger docs based on the service port the request are coming? I'm using swashbuckle on .NET Core

@Ishaangt
Copy link

Have the same issue with my setup also.
My setup:

  • api.domain.com:8081/api/v1
  • api.domain.com:8082/api/v1
  • api.domain.com:8083/api/v1

If the swagger is run individually, there is no issue on the swagger-ui but if all the apps are running on the same instance as microservices, only the first one shows up even when trying to hit the different port number.
Should be a bug.

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

No branches or pull requests

3 participants