webapi 配置swagger出現問題:not supported by swagger 2.0

一個controller中只能有一個HttpGet請求,多了就會報錯。建議減少重載方法,將其他Get方法分開 如果在swagger.config中加上c.ResolveConflictingActions(apiDescriptions => apiDescriptions.First());則會只顯示第一個get方法 另:可以不安裝swagger ui for .net,安了有可能會報錯
相關文章
相關標籤/搜索