I've been trying to access the generated Swagger-UI of a JHipster generated Spring app. I've tried to access through "/swagger-ui.html" as that worked out just fine with other projects, but not this time. I've also looked up the security configuration class and tried all URLs that reference swagger (like "/swagger-ui/index.html") but none of them work: It's response code 404.
I know that the configuration class gets run, because the console shows the "Started Swagger" message, but still no UI.
Any ideas? Any help will be much appreciated. Thanks.
To access all API documentation, navigate to our Data & Insights Developer site and click on API Docs in the top header. We also support a number of programmatic data publishing solutions used to import data to the Data & Insights platform.
To access the Swagger docs on a JHipster app, you need to go login as an admin and click the "API" link in the admin navbar dropdown.
A gateway is a normal JHipster application, so you can use the usual JHipster options and development workflows on that project, but it also acts as the entrance to your microservices.
The JHipster Registry is a runtime application, provided by the JHipster team. Like the JHipster generator, it is an Open Source, Apache 2-licensed application, and its source code is available on GitHub under the JHipster organization at jhipster/jhipster-registry.
To access the Swagger docs on a JHipster app, you need to go login as an admin and click the "API" link in the admin navbar dropdown.
You can also access it directly at http://localhost:8080/#/docs
Have you made sure that the swagger profile is active?
Check your config at src/main/resources/config/application-dev.yml
spring:
profiles:
active: dev
include: swagger
or
spring:
profiles:
active: dev, swagger
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With