简体   繁体   English

JHipster import-jdl不生成摇摇欲坠

[英]JHipster import-jdl not generating swagger

Is it possible to generate the swagger api.yaml from JDL? 是否可以从JDL生成swagger api.yaml?

I've created and app with swagger addon and then imported entities from jdl but the swagger api.yaml is empty 我已经创建并使用swagger插件,然后从jdl导入了实体,但是swagger api.yaml为空

That specific api.yml is intended for JHipster's API First Development feature. 该特定的api.yml用于JHipster的API First Development功能。

JHipster comes configured with Springfox , which automatically generates the Swagger docs based on the project's code. JHipster配置有Springfox ,它会根据项目的代码自动生成Swagger文档。 You can access the app's Swagger config after starting the app at http://localhost:8080/v2/api-docs . http:// localhost:8080 / v2 / api-docs上启动应用程序后,您可以访问应用程序的Swagger配置。 It is in JSON format by default, if you need YAML you can upload it to the Swagger Editor 默认情况下为JSON格式,如果您需要YAML,则可以将其上传到Swagger编辑器

You can also view the docs in a built-in SwaggerUI at http://127.0.0.1:8080/#/docs , normally located under the Administration navbar menu. 您也可以在内置的SwaggerUI中查看文档,该文档位于http://127.0.0.1:8080/#/docs ,通常位于“管理”导航栏菜单下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM