没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
232页
Get an overview of request-response and event-driven API design paradigms Learn best practices for designing an API that meets the needs of your users Use a template to create an API design process Scale your web API to support a growing number of API calls and use cases Regularly adapt the API to reflect changes to your product or business Provide developer resources that include API documentation, samples, and tools
资源推荐
资源详情
资源评论
978-1-492-02692-1
[LSI]
Designing Web APIs
by Brenda Jin, Saurabh Sahni, and Amir Shevat
Copyright © 2018 Brenda Jin, Saurabh Sahni, and Amir Shevat. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA
95472.
O’Reilly books may be purchased for educational, business, or sales promotional use.
Online editions are also available for most titles (http://oreilly.com/safari). For more
information, contact our corporate/institutional sales department: 800-998-9938 or
corporate@oreilly.com.
Acquisitions Editor: Mary Treseler
Development Editor: Angela Rufino
Production Editor: Justin Billing
Copyeditor: Octal Publishing, Inc.
Proofreader: Rachel Head
Indexer: Ellen Troutman
Interior Designer: David Futato
Cover Designer: Karen Montgomery
Illustrator: Rebecca Demarest
September 2018:
First Edition
Revision History for the First Edition
2018-08-28: First Release
See http://oreilly.com/catalog/errata.csp?isbn=9781492026921 for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Designing Web
APIs, the cover image, and related trade dress are trademarks of O’Reilly Media, Inc.
The views expressed in this work are those of the authors, and do not represent the
publisher’s views. While the publisher and the authors have used good faith efforts
to ensure that the information and instructions contained in this work are accurate,
the publisher and the authors disclaim all responsibility for errors or omissions,
including without limitation responsibility for damages resulting from the use of or
reliance on this work. Use of the information and instructions contained in this
work is at your own risk. If any code samples or other technology this work contains
or describes is subject to open source licenses or the intellectual property rights of
others, it is your responsibility to ensure that your use thereof complies with such
licenses and/or rights.
www.allitebooks.com
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
1.
What’s an API?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Why Do We Need APIs? 2
Who Are Our Users? 2
The Business Case for APIs 3
What Makes an API Great? 7
Closing Thoughts 8
2.
API Paradigms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Request–Response APIs 9
Event-Driven APIs 19
Closing Thoughts 25
3.
API Security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Authentication and Authorization 27
OAuth 28
WebHooks Security 42
Closing Thoughts 46
4.
Design Best Practices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Designing for Real-Life Use Cases 47
Designing for a Great Developer Experience 48
Closing Thoughts 59
5.
Design in Practice. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Scenario 1 62
iii
www.allitebooks.com
剩余231页未读,继续阅读
资源评论
白鸽-小蛋
- 粉丝: 10
- 资源: 167
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功