小编kla*_*sch的帖子

Swagger 注释不显示身体示例

使用 Swagger Annotations 时,无法为请求正文创建示例。

生成 Swagger 页面但缺少 Json

这是 RESTful 资源/端点的注释内容:

 @POST
@Path("/{carId}/conversation")
@ApiImplicitParams({
        @ApiImplicitParam(name = "Authorization", value = "The AppJWT token", paramType = "header", required = true),
        @ApiImplicitParam(name = "ON-BEHALF", value = "The ConsumerJWS token", paramType = "header", required = true),
        @ApiImplicitParam(name = "v", value = "API version", defaultValue = "3", paramType = "query", required = true)
})
@ManagedAsync
@ApiOperation(value = "bla", notes = "")
@ApiResponses(value = {
        @ApiResponse(code = 200, message = "bla", response = CreateBlaResponse.class, responseContainer = "List"),
        @ApiResponse(code = 400, …
Run Code Online (Sandbox Code Playgroud)

swagger-2.0

5
推荐指数
0
解决办法
2789
查看次数

标签 统计

swagger-2.0 ×1