jjzjj

ignoredTypes

全部标签

c# - ASP.Net Web Api - ApiExplorer 不包含任何 ApiDescriptions

我正在尝试在我的Web服务的Controller中实现一个Options方法,该方法将返回一条消息,其中包含与Controller关联的URI端点的有效HTTP方法。我的Options方法看起来像这样:publicHttpResponseMessageOptions(){varresp=newHttpResponseMessage();resp.Content=newStringContent("");varapiExplorer=GlobalConfiguration.Configuration.Services.GetApiExplorer();foreach(ApiDescrip