一、添加包Microsoft.AspNet.WebApi.HelpPage可以自动给api生成帮助页面,url:/help

二、help加注释:

1.

2.

public static class HelpPageConfig
{
[SuppressMessage("Microsoft.Globalization", "CA1303:Do not pass literals as localized parameters",
MessageId = "WebApplication2.Areas.HelpPage.TextSample.#ctor(System.String)",
Justification = "End users may choose to merge this string with existing localized resources.")]
[SuppressMessage("Microsoft.Naming", "CA2204:Literals should be spelled correctly",
MessageId = "bsonspec",
Justification = "Part of a URI.")]
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/WebApplication2.XML")));

最新文章

  1. java中的匿名内部类总结
  2. 利用网络流传的WebShell默认密码库寻找WebShell
  3. 关闭一个winform窗体刷新另外一个
  4. C++智能指针初学小结
  5. Mustache学习
  6. is,as,sizeof,typeof,GetType
  7. gRPC helloworld service, RESTful JSON API gateway and swagger UI
  8. 线程协作方法sleep、yield、wait、join
  9. vue+element-ui实现显示隐藏密码
  10. Datatable get请求传参应用
  11. get方法与post方法的区别与js获取url参数的方式
  12. jmeter连接oracle时未找到要求的 FROM 关键字问题
  13. Google Colab Free GPU Tutorial【转载】
  14. Laravel--查询构造器 方法 及聚合函数
  15. Atitti 创业团队vs打工的团队 attilax总结
  16. 潭州课堂25班:Ph201805201 MySQL第三课 (课堂笔记)
  17. 〖Android〗从Android Studio转为Eclipse开发项目运行程序闪退的解决方法
  18. 【BZOJ1497】【NOI2006】最大获利
  19. 实现session(session数据)的共享,解决分布式session共享
  20. puts,p,print的区别

热门文章

  1. win7 winsxs精简 cmd 脚本之 再次 改进版
  2. TAP/TUN浅析(一)
  3. Python之路 day2 字典练习题之 三级菜单
  4. 模板列onclick事件中绑定跳转页参数(onclick location.href Eval)
  5. HTML 教程延伸阅读:改变文本的外观和含义
  6. Python笔记总结week4
  7. 关于java中创建文件,并且写入内容
  8. Jenkins构建时报错:No Space left on device
  9. NSTimer “定时器”
  10. 如何查询postgresql+openstreetmap