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

后端 未结 3 1024
隐瞒了意图╮
隐瞒了意图╮ 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:36

    If you use Glimpse, you might have to disable it's route inspector:

    
      
      
        
          
        
      
      
        
          
        
      
    
    

    Glimpse creates RouteProxies that break enumeration in HostedHttpRouteCollection: https://github.com/mono/aspnetwebstack/blob/master/src/System.Web.Http.WebHost/Routing/HostedHttpRouteCollection.cs

    I know the link is for mono but the same is true for standard .Net.

提交回复
热议问题