swagger-ui-layer icon indicating copy to clipboard operation
swagger-ui-layer copied to clipboard

RequestMethod的类型为post以及put的restful接口其Responses为空白?

Open 1780spark opened this issue 5 years ago • 1 comments

1、RequestMethod的类型为post以及put的restful接口其Responses为空白?

2、即便在接口使用@ApiResponses或者@ApiResponse,接口界面也是显示为空白,源码的BUG?

1780spark avatar May 28 '19 10:05 1780spark

你可以使用 @ApiOperation 注解里面的response属性,这个是指定返回值类型的,如果没有指定,会显示该方法的返回值,你的方法返回值是void吗? @ApiResponse 更多情况下是用来指定错误信息的返回内容

caspar-chen avatar May 29 '19 02:05 caspar-chen