codecamp

6 References

  1. KNOW YOUR HTTP status codes WELL
  2. Hello World Product API With Blueprint, RAML And Swagger - 这篇贵在提供了三种API design方案的对比
  3. AUTOMATED DOCUMENTATION FOR REST APIS
  4. GitHub API v3
  5. How do you document your APIs?
    • 除了常见的几种方案,这篇还提供了其它方案的信息链接
  6. https://github.com/danielgtaylor/aglio - 还不错的一个根据API Blueprint生成文档的工具
    • An API Blueprint renderer with theme support that outputs static HTML
5 小结
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }