cancel
Showing results for 
Search instead for 
Did you mean: 

Why multiple web services on one page?

Highlighted
New 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?

 

http://localhost:8082

2020-05-13_15-17-56.png

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.

1 REPLY 1
Highlighted
New Contributor

Re: Why multiple web services on one page?

Either this is a feature no one knows about, or a defect that no one knows about?!?

 

I was hoping to learn how to use/configure this cool feature.

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors