没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Build APIs You Won’t Hate
Everyone and their dog wants an API, so you should probably learn
how to build them.
Phil Sturgeon
This book is for sale at http://leanpub.com/build-apis-you-wont-hate
This version was published on 2015-08-12
This is a Leanpub book. Leanpub empowers authors and publishers with
the Lean Publishing process. Lean Publishing is the act of publishing an
in-progress ebook using lightweight tools and many iterations to get
reader feedback, pivot until you have the right book and build traction
once you do.
©2013 - 2015 Phil Sturgeon
Tweet This Book!
Please help Phil Sturgeon by spreading the word about this book on
Twitter!
The suggested tweet for this book is:
I just bought @philsturgeon’s book about APIs, because he said if I didn’t
he would hurt me: http://apisyouwonthate.com
The suggested hashtag for this book is #apisyouwonthate.
Find out what other people are saying about the book by clicking on this
link to search for this hashtag on Twitter:
https://twitter.com/search?q=#apisyouwonthate
A huge thank you to all the developers and other folks who built the
technologies this book talks about.
I would also like to thank everyone who bought an early copy of this book on
LeanPub. 2014 was a really messed up year for me, and those book sales kept
me going, and kept me motivated to finish the book on time.
Without you, I would be much further away from getting my boat.
Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . i
Sample Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii
1. Useful Database Seeding . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Introduction to Database Seeding . . . . . . . . . . . . . . . . 1
1.3 Building Seeders . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.4 That is about it . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.5 Secondary Data . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.6 When to run this? . . . . . . . . . . . . . . . . . . . . . . . . . 11
2. Planning and Creating Endpoints . . . . . . . . . . . . . . . . . . . 12
2.1 Functional Requirements . . . . . . . . . . . . . . . . . . . . . 12
2.2 Endpoint Theory . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.3 Planning Endpoints . . . . . . . . . . . . . . . . . . . . . . . . 21
3. Input and Output Theory . . . . . . . . . . . . . . . . . . . . . . . . 24
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.2 Requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.3 Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.4 Supporting Formats . . . . . . . . . . . . . . . . . . . . . . . . 27
3.5 Content Structure . . . . . . . . . . . . . . . . . . . . . . . . . 32
4. Status Codes, Errors and Messages . . . . . . . . . . . . . . . . . . 38
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.2 HTTP Status Codes . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.3 Error Codes and Error Messages . . . . . . . . . . . . . . . . . 40
4.4 Error or Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
4.5 Standards for Error Responses . . . . . . . . . . . . . . . . . . 43
剩余180页未读,继续阅读
资源评论
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Python大作业:音乐播放软件(爬虫+可视化+数据分析+数据库)
- 课程设计-python爬虫-爬取日报,爬取日报文章后存储到本地,附带源代码+课程设计报告
- 软件和信息技术服务行业投资与前景预测.pptx
- 课程设计-基于SpringBoot + Mybatis+python爬虫NBA球员数据爬取可视化+源代码+文档+sql+效果图
- 软件品质管理系列二项目策划规范.doc
- 基于TensorFlow+PyQt+GUI的酒店评论情感分析,支持分析本地数据文件和网络爬取数据分析+源代码+文档说明+安装教程
- 软件定义无线电中的模拟电路测试技术.pptx
- 软件开发协议(作为技术开发合同附件).doc
- 软件开发和咨询行业技术趋势分析.pptx
- 软件测试题详解及答案.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功