generator-jhipster
generator-jhipster copied to clipboard
REST APIs are not visible in Control Center 0.5.1 -> API section when using jHipster v. 7.5.0 and above
I am quite new in jHipster world, so i am not sure if it is really a bug or I am doing something wrong. Anyway, i cross-checked it with other developers and they noticed same issue.
Overview of the issue
Micro-services and API gateway APIs are not visible in Control Center -> API section. Applications are visible in Control Center -> Instances section, Metrics sections and so on, but not in API tab.
Project set up:
- jHipster Registry 7.3.0
- jHipster Control Center 0.5.1
- API Gateway generated based on jHipster v. 7.8.1
- sample micro-service generated based on jHipster v. 7.8.1
- local env - Ubuntu 19.10 64
Results from jhipster info (sample micro-service app) Welcome to JHipster v7.8.1
Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
[email protected] /home/twasik/microservices/ms-cars
└── [email protected]
JHipster configuration, a .yo-rc.json
file generated in the root folder
.yo-rc.json file
{ "generator-jhipster": { "applicationType": "microservice", "authenticationType": "jwt", "baseName": "mscars", "blueprints": [], "buildTool": "maven", "cacheProvider": "no", "creationTimestamp": 1655705069239, "databaseType": "sql", "devDatabaseType": "h2Memory", "dtoSuffix": "DTO", "enableGradleEnterprise": false, "enableHibernateCache": false, "enableSwaggerCodegen": true, "enableTranslation": false, "entities": ["Car"], "entitySuffix": "", "jhiPrefix": "jhi", "jhipsterVersion": "7.8.1", "jwtSecretKey": "YourJWTSecretKeyWasReplacedByThisMeaninglessTextByTheJHipsterInfoCommandForObviousSecurityReasons", "languages": ["en", "fr"], "lastLiquibaseTimestamp": 1655705365000, "messageBroker": false, "nativeLanguage": "en", "otherModules": [], "packageName": "com.ms.cars", "pages": [], "prodDatabaseType": "mysql", "reactive": true, "searchEngine": false, "serverPort": "8282", "serverSideOptions": ["enableSwaggerCodegen:true"], "serviceDiscoveryType": "eureka", "skipCheckLengthOfIdentifier": false, "skipClient": true, "skipFakeData": false, "skipUserManagement": true, "testFrameworks": [], "websocket": false, "withAdminUi": false } }
JDL for the Entity configuration(s) entityName.json
files generated in the .jhipster
directory
JDL entity definitions
entity Car { make String model String year Integer } microservice Car with mscars clientRootFolder Car with mscars
Environment and Tools
openjdk version "11" 2018-09-25 OpenJDK Runtime Environment 18.9 (build 11+28) OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
git version 2.20.1
node: v16.14.2
npm: 8.5.0
No change to package.json was detected. No package manager install will be executed.
Reproduce the error
- use jhipster v. 7.5.0 and above
- download and run jhipster registry 0.5.1
- download and run jhipster control center 0.5.1
- create sample micro-service project
- provide same config in all applications (like jwt token)
- start up sample micro-service
- navigate to control center -> API
Affected versions
jHipster v. 7.4.1 is the last, stable version. Micro-services generated with jHipster v. 7.4.1 are visible in Control Center -> API tab. So, looks like that bug was introduced in jHipster v. 7.5.0. Based on release notes i would say that bug is related to migration from springfox to springdoc.