Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1780spark opened this issue May 28, 2019 · 1 comment

Comments

@1780spark
Copy link

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

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

@caspar-chen
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants