jhipster / jhipster-registry

JHipster Registry, based on Spring Cloud Netflix Eureka and Spring Cloud Config
Apache License 2.0
699 stars 657 forks source link

Swagger UI in Registry doesn't show the API document for other services #555

Closed ryanmyj closed 1 year ago

ryanmyj commented 2 years ago

Generate a gateway, start up the service. Then start the Registry

image

Go to the Swagger page, the gateway API doesn't show up:

image

JHipster Version(s)

7.4.0

JHipster Registry Version(s)

7.4.0

All the configuration is default.

mshima commented 2 years ago

jhipster-registry is missing the endpoints lookup: https://github.com/jhipster/generator-jhipster/blob/f2521c39f538908b90809b4c3090ee4962197c8a/generators/client/templates/common/src/main/webapp/swagger-ui/index.html.ejs#L77-L113

juliensadaoui commented 1 year ago

Hello, it's normal. We decided to remove this functionality. The discussion is here: https://groups.google.com/g/jhipster-dev/c/i3DxfM91Yqk/m/xlzkk0rRAgAJ

I suggest you to use this project https://github.com/jhipster/jhipster-control-center by connecting it to your JHipster Registry