webapi配置swagger错误记录
时间:2020-07-24 18:05:18
收藏:0
阅读:116
访问:http://localhost:xxxx/swagger/v1/swagger.json
错误:NotSupportedException: Ambiguous HTTP method for action - Api.Controllers.IdentityController.Get (Api). Actions require an explicit HttpMethod binding for Swagger/OpenAPI 3.0
原因:控制器方法定义不标准,加上HttpGet或其他特性即可。
原文:https://www.cnblogs.com/jinwoguliang/p/13372729.html
评论(0)