WebApi

  1. 包括Token
  2. 使用Swagger
  3. 返回的Json首字母小写

参考资料:

  1. ASP.NET Web API 使用Swagger生成在线帮助测试文档:http://www.cnblogs.com/yxlblogs/p/4075932.html
  2. Camel Case Web API Json settings do not seem to be working:https://stackoverflow.com/questions/33411044/camel-case-web-api-json-settings-do-not-seem-to-be-working/33412083#33412083?newreg=ea2d2f5467d24d38a4e311aa2b4629e9
  3. Swagger启用header:https://github.com/swagger-api/swagger-ui#header-parameters

源码:

  1. GitHub:https://github.com/lonlie/SafeWebApi
posted @ 2017-03-15 13:39  促动科技  阅读(140)  评论(0)    收藏  举报