标签:word ppa 技术分享 new art 分享 doc 操作 protected
Install-Package Microsoft.AspNet.WebApi.HelpPage
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
}
WebApplication/Areas/HelpPage/App_Start/HelpPageConfig.cs 目录下,找到下面代码,并取消注释(App_Data 改为 bin):
public static void Register(HttpConfiguration config)
{
//// Uncomment the following to use the documentation from XML documentation file.
config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/bin/XmlDocument.xml")));
}
/// <summary>
/// Values控制器
/// </summary>
public class ValuesController : ApiController
{
........
/// <summary>
/// POST 操作
/// </summary>
/// <param name="value">value值</param>
public void Post([FromBody]string value)
{
}
}
Help Page
Help/Api/POST-api-Values
标签:word ppa 技术分享 new art 分享 doc 操作 protected
原文地址:http://www.cnblogs.com/0to9/p/6359903.html