2012-03-07 32 views
2

有谁知道是否有任何方式公开新的ASP.NET WEB Api REST接口元数据与WCF(/帮助)一样?ASP.NET Web Api元数据交换?

<standardEndpoints> 
     <webHttpEndpoint> 
     <standardEndpoint name="" helpEnabled="true" 
          automaticFormatSelectionEnabled="true" /> 
     </webHttpEndpoint> 
</standardEndpoints> 

回答

2

帮助页面生成在的ASP.NET Web API的首次下降(在ASP.NET MVC 4测试版)的支持,但计划在以后的版本中得到支持。测试客户端网站的生成也计划得到支持。

+0

你有这方面的来源吗?我想知道更多。 – Junto 2012-06-26 11:09:46

+0

来源= [http://wcf.codeplex.com/wikipage?title=WCF%20Web%20API%20is%20now%20ASP.NET%20Web%20API](http://wcf.codeplex.com/wikipage?title = WCF%20Web%20API%20is%20now%20ASP.NET%20Web%20API) 向下滚动到“ASP.NET Web API是否支持测试客户端和帮助页面生成?”。 您还应该检查它是否已经在RC版本中实现。 – 2012-07-11 06:56:28

+0

从测试版到RC:“现在,您可以使用新的IApiExplorer服务获取Web API的完整运行时描述,轻松地为您的Web API构建自定义帮助和测试页。”来源= [http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253817](http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253817) – 2012-07-11 12:05:09