generator-jhipster: Error 404 on gateway for swagger-ui

Overview of the issue

I generated a gateway from master The app works on port 8080 but I get an error 404 on http://localhost:9000/swagger-ui/index.html

JHipster Version(s)

3.0 master at #c9f3e112739008bf0241678608407df419e6da53

JHipster configuration, a .yo-rc.json file generated in the root folder
{
  "generator-jhipster": {
    "jhipsterVersion": "2.27.0",
    "baseName": "gateway",
    "packageName": "com.a.e.central",
    "packageFolder": "com/a/e/central",
    "authenticationType": "jwt",
    "hibernateCache": "ehcache",
    "clusteredHttpSession": "no",
    "websocket": "no",
    "databaseType": "sql",
    "devDatabaseType": "h2Memory",
    "prodDatabaseType": "postgresql",
    "searchEngine": "no",
    "buildTool": "maven",
    "jwtSecretKey": "***",
    "rememberMeKey": "***",
    "useSass": true,
    "enableTranslation": false,
    "applicationType": "gateway",
    "testFrameworks": [],
    "enableSocialSignIn": false
  }
}
Entity configuration(s) entityName.json files generated in the .jhipster directory

No entities on gateway.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 19 (15 by maintainers)

Most upvoted comments

@yhjhoo : I understand your need, but as discussed before, it won’t be done in the generator-jhipster. Your demo is not a microservice. It’s a simple application with swagger, without security

There are 2 solutions:

  1. you can code yourself what you need, just keep in mind this page should not be able in production profile
  2. simply generate a gateway and start it. That’s what I always do

Yes this is “normal”.

  • We don’t generate any UI anymore on the microservices, so there is no Swagger UI there
  • The idea is that the UI is now on the gateway: when you log into the gateway, the “API” menu is there like in the monolith app, but now you have a dropdown list and you can have access to the Swagger doc from the microservices from there. All the documentation is now in one place 😃
  • Be careful, this is linked to #2954 so right now I’m not sure if the Swagger JSON is available from the microservice (which will make the gateway UI fail, of course)