- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
api-design-ebook-2016-03.pdf
Web API Design
Crafting Interfaces that Developers Love
Brian Mulloy
Table of Contents
Web API Design - Crafting Interfaces that Developers Love
Introduction 3
Nouns are good; verbs are bad 4
Plural nouns and concrete names 8
Simplify associations - sweep complexity under the ‘?’ 9
Handling errors 10
Tips for versioning 13
Pagination and partial response 16
What about responses that don’t involve resources? 19
Supporting multiple formats 20
What about attribute names? 21
Tips for search 22
Consolidate API requests in one subdomain 23
Tips for handling exceptional behavior 25
Authentication 27
Making requests on your API 28
Chatty APIs 30
Complement with an SDK 31
The API Façade Pattern 32
2
Web API Design - Crafting Interfaces that Developers Love
Introduction
If you’re reading this, chances are that you care about designing Web APIs that developers
will love and that you’re interested in applying proven design principles and best practices
to your Web API.
One of the sources for our design thinking is REST. Because REST is an architectural style
and not a strict standard, it allows for a lot of flexibly. Because of that flexibility and
freedom of structure, there is also a big appetite for design best practices.
This e-book is a collection of design practices that we have developed in collaboration with
some of the leading API teams around the world, as they craft their API strategy through a
design workshop that we provide at Apigee.
We call our point of view in API design “pragmatic REST”, because it places the success of
the developer over and above any other design principle. The developer is the customer for
the Web API. The success of an API design is measured by how quickly developers can get
up to speed and start enjoying success using your API.
We’d love your feedback – whether you agree, disagree, or have some additional
您可能关注的文档
- A Practical Guide to Wavelet Analysis.pdf
- A probabilistic mechanism for small disturbance instabilities in electric power systems.pdf
- A Problem-Solving Approach to Addressing Current Global Challenges in Education.pdf
- A Proposal for a CA-Integrated English Language Teacher Education Program in Turkey.pdf
- a really friendly guide to wavelet.pdf
- A Reconfigurable Platform for the Design and Verification of Domain-Specific.pdf
- A Red Dress - Alice Munro.pdf
- A remark on global positioning from local distances.pdf
- A report card on back to school-the season's trends and what they mean for holiday.pdf
- A Review of Global Wine Tourism Research.pdf
- App Annie 8月全球应用指数:Facebook Messenger登顶iOS和Google Play下载量排行.pdf
- App Annie Special Report Google Play 2016.pdf
- app-001-gearbox-database.pdf
- APP-110-Glass_Protective_Barrier_Design.pdf
- Appadurai....disjuncture and difference in the global cultural economy.pdf
- Appadurai_Global_Ethnoscape.pdf
- Application of an Improved Adaptive Kalman Filter to Transfer.pdf
- Application of the Finite Volume Time Domain.pdf
- Applying DFSS Tools in the VOC and Requirements Definition Processes.pdf
- APW7073_英_5V & 3.3V DC-DC转换芯片 PWM控制芯片.pdf
原创力文档


文档评论(0)