swagger-api / swagger-api/swagger-ui
Multiple swagger docs on different ports
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report concerns Swagger UI used with Swashbuckle on .NET Core, with services on ports 5000 and 5001. Start by reproducing the two-service setup and compare how each service's Swagger UI request is routed. Done means both ports display their respective Swagger documents without an error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100