From 04b82ff93b4c6226233ab30679d1a4abcdf98396 Mon Sep 17 00:00:00 2001 From: Huachao Mao Date: Mon, 1 Feb 2016 23:59:59 +0800 Subject: [PATCH] Update README.md Add RESTful cookbook in Books list --- README.md | 66 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index a7f2492..4d8ba00 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ 8. [撰写安全合格的REST API][13] 利用好 HTTP 协议所具备的特征 9. [Web 服务编程,REST 与 SOAP][14] REST 与传统的面向服务的接口设计的区别,启发性强 10. [最佳实践:更好的设计你的 REST API][15] 了解 REST 实现缓存的过程 - 1. [Thoughts on RESTful API Design][16] - 2. [REST API Tutorial][17] 全方位介绍 REST - 3. [HTTP 接口设计指北][18] + 11. [Thoughts on RESTful API Design][16] + 12. [REST API Tutorial][17] 全方位介绍 REST + 13. [HTTP 接口设计指北][18] #### 知识碎片 #### @@ -32,41 +32,42 @@ 1. [RESTful Web APIs][25] 较新的一本书,对 REST 做了很多系统性的总结,尤其对“超媒体”作了详细的介绍 2. [REST 实战][26] 基于 Jersey 构建 RESTful 服务,有实际的案例 [RestDemo][27](我注:读者需要懂一些 Java ) 3. [Jersey 2.x 用户指南][28] 该书是 Java REST 的规范实现之一 Jersey 用户手册,中文翻译(我注:读者需要懂一些 Java ) + 4. [Rest CookBook][29] 基础介绍构建RESTful API #### 例子 #### - 1. [Github API v3][29] 被很多人参考和引用,比如对分页的处理方法、接口版本的设计等等 - 2. [Mailgun Documentation][30] 邮件服务 REST API - 3. [Enchant REST API][31] - 4. [Coinbase][32] API 设计的挺好的,包括官网提供的接口客户端,都是具有参考意义的 - 5. [OpenNMS Wiki ReST API][33] + 1. [Github API v3][30] 被很多人参考和引用,比如对分页的处理方法、接口版本的设计等等 + 2. [Mailgun Documentation][31] 邮件服务 REST API + 3. [Enchant REST API][32] + 4. [Coinbase][33] API 设计的挺好的,包括官网提供的接口客户端,都是具有参考意义的 + 5. [OpenNMS Wiki ReST API][34] 关于例子,实在是太多了,在有时间的时候,多观察别人的设计,有利于写出好的 API。 #### 调试工具 #### - 1. [DHC (aka Dev HTTP Client)][34] Chrome 插件,简单易用,可分类管理,界面友好。也很多人推荐 [Postman][35] - 2. [Fiddler2][36] 抓包,捕捉每一次 REST 请求和响应的详细内容 + 1. [DHC (aka Dev HTTP Client)][35] Chrome 插件,简单易用,可分类管理,界面友好。也很多人推荐 [Postman][35] + 2. [Fiddler2][37] 抓包,捕捉每一次 REST 请求和响应的详细内容 #### 文档制作 #### - 1. [slate][37] 创建的 API 文档很好看,也很实用,三列式,目录、调用说明和代码示例同屏滚动显示。 - 2. [i5ting_ztree_toc API][38] 把 Markdown 文档生成简单的 HTML API + 1. [slate][38] 创建的 API 文档很好看,也很实用,三列式,目录、调用说明和代码示例同屏滚动显示。 + 2. [i5ting_ztree_toc API][39] 把 Markdown 文档生成简单的 HTML API #### 代码高亮 #### -1. [highlight.js][39] 无需指定代码是什么语言,直接按 TAB 键搞掂,它会自动检测高亮 -2. [PrismJS][40] 高亮效果挺好看的 +1. [highlight.js][40] 无需指定代码是什么语言,直接按 TAB 键搞掂,它会自动检测高亮 +2. [PrismJS][41] 高亮效果挺好看的 这方面的工具很多,可以自己在网上找找,找一款适合自己的就可以,毕竟只是工具,能达到目的就好。 #### 社区 #### - 1. [API Craft Google Group][41] 有梯子才行 - 2. [RESTful - 知乎][42] 我也有作答~~ + 1. [API Craft Google Group][42] 有梯子才行 + 2. [RESTful - 知乎][43] 我也有作答~~ #### 其他 #### - 1. [MarkdownPad2][43] Window 下使用 Markdown 语法编写文档。等习惯了它的语法,可以直接使用任何一款文本编辑器直接写了 + 1. [MarkdownPad2][44] Window 下使用 Markdown 语法编写文档。等习惯了它的语法,可以直接使用任何一款文本编辑器直接写了 [1]: http://codeplanet.io/principles-good-restful-api-design/ @@ -97,18 +98,19 @@ [26]: https://github.com/waylau/rest-in-action [27]: https://github.com/waylau/RestDemo [28]: https://github.com/waylau/Jersey-2.x-User-Guide - [29]: https://developer.github.com/v3/ - [30]: https://documentation.mailgun.com/ - [31]: http://dev.enchant.com/api/v1 - [32]: https://developers.coinbase.com/api/v2 - [33]: http://www.opennms.org/wiki/ - [34]: https://www.sprintapi.com/dhcs.html - [35]: https://www.getpostman.com/ - [36]: http://www.telerik.com/fiddler - [37]: https://github.com/tripit/slate - [38]: https://github.com/i5ting/i5ting_ztree_toc - [39]: https://highlightjs.org/ - [40]: https://github.com/PrismJS/prism - [41]: https://groups.google.com/forum/?fromgroups#!forum/api-craft - [42]: http://www.zhihu.com/topic/19579308/top-answers - [43]: http://markdownpad.com/ + [29]: http://restcookbook.com/ + [30]: https://developer.github.com/v3/ + [31]: https://documentation.mailgun.com/ + [32]: http://dev.enchant.com/api/v1 + [33]: https://developers.coinbase.com/api/v2 + [34]: http://www.opennms.org/wiki/ + [35]: https://www.sprintapi.com/dhcs.html + [36]: https://www.getpostman.com/ + [37]: http://www.telerik.com/fiddler + [38]: https://github.com/tripit/slate + [39]: https://github.com/i5ting/i5ting_ztree_toc + [40]: https://highlightjs.org/ + [41]: https://github.com/PrismJS/prism + [42]: https://groups.google.com/forum/?fromgroups#!forum/api-craft + [43]: http://www.zhihu.com/topic/19579308/top-answers + [44]: http://markdownpad.com/