首页 > 解决方案 > jhipster,api-first 方法,生成的 api 现在显示在 swagger-ui 中

问题描述

我遵循指南https://www.jhipster.tech/doing-api-first-development/生成端点接口并实现 PetApiDelegateImpl。

“pet/findByStatus”是可访问的:

 curl -X GET --header 'Accept: application/json' 'http://localhost:8080/v2/pet/findByStatus?status=pending'
[ {
  "id" : 7918631312207652864,
  "category" : null,
  "name" : null,
  "photoUrls" : [ ],
  "tags" : null,
  "status" : "pending"
}]

然而,大摇大摆地,没有任何 petstore api 显示: 在此处输入图像描述

我有什么遗漏吗?

标签: jhipsteropenapi

解决方案


推荐阅读