ASP.Net Web Api - ApiExplorer does not contain any ApiDescriptions

后端 未结 3 1064
隐瞒了意图╮
隐瞒了意图╮ 2021-01-04 08:54

I am trying to implement an Options method in a controller of my web service that will return a message containing the valid HTTP methods for the URI endpoint associated wit

3条回答
  •  长发绾君心
    2021-01-04 09:37

    You should look to upgrade to the RTM of WebApi that was released yesterday and then check out the newly released ASP.NET WebApi Help Page (Preview) that was also released yesterday.

    This package automatically generates help page content for Web APIs on your site. Visitors to your help page can use this content to learn how to call your web APIs. Everything generated by the help page is fully customizable using ASP.NET MVC and Razor.

    It is implementing the ApiExplorer under the covers.

提交回复
热议问题