Open Closed

Microservice template Web Gateway / Swagger question #4639


User avatar
0
steve.burgess created
  • ABP Framework version: v7.0.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi, I'm currently using the microservice template for one of my projects. I had quick question about swagger and the Web Gateway.

The diagram at the top of this page (https://docs.abp.io/en/commercial/latest/startup-templates/microservice/gateways) show the web applications (in my case Angular) connecting to the services through the Web Gateway.

In my Openshift configuration im planning on setting it so the services are only accessible via the Web Gateway as this seems to make sense.

However, this looks like it will break the swagger page on the Web Gateway. As far as i can tell when selecting an option from the top right drop down on the Web Gateway swagger page your browser will attempt to contact the selected service and pull down its swagger definition. This obviously fails if you have restricted access to the service to be just through the Web Gateway.

Am i misunderstanding something or is this how it's meant to be?

Thanks,

Steve.


2 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Hello,

    Yes, gateways in microservice template locates the re-routing services and add them as swagger definitions. Currently, we are trying to find a way to cover this scenario better, where microservices do not expose any swagger ui but the gateway exposes the swagger ui with all the endpoints it re-routes to.

    However the solution will most likely differ based on the gateway library.

    Currently, you can alter the gateway swagger ui manually.

  • User Avatar
    0
    steve.burgess created

    Hello,

    Yes, gateways in microservice template locates the re-routing services and add them as swagger definitions. Currently, we are trying to find a way to cover this scenario better, where microservices do not expose any swagger ui but the gateway exposes the swagger ui with all the endpoints it re-routes to.

    However the solution will most likely differ based on the gateway library.

    Currently, you can alter the gateway swagger ui manually.

    OK thanks,

    Steve.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19