aadhoc2312
5 years agoNew Contributor
Why multiple web services on one page?
I'm curious why I see multiple web services on one Swagger UI page.
It's wonderful to have more than one service listed, but how?
I have 3 containers in docker-compose:
- StoreService (port 8080) - Public frontend API which calls the InventoryService and SalesService
- InventoryService (port 8081) - Private backend service
- SalesService (port 8082) - Private backend service
On localhost:8080/swagger, it provides only the Store API endpoints
On localhost:8081/swagger, it provides only the Inventory API endpoints
On localhost:8082/swagger, it provides both Inventory API and Sales API endpoints, each under their own header line.
I've got a straight-forward install/use of swagger for my ASP.NET Core C# services, and will post lines of code if necessary.
I don't think I have anything "bleeding across" the containers, other than a shared "common" library.