首页 > Windows开发 > 详细

优秀api鉴赏

时间:2014-07-03 13:09:10      阅读:352      评论:0      收藏:0      [点我收藏+]

http://codeplanet.io/principles-good-restful-api-design/

hateoas

http://en.wikipedia.org/wiki/HATEOAS

http://en.wikipedia.org/wiki/RSDL

 

 http://www.doc88.com/p-1367381447735.html

 

if match 

if none match

 

 

 

google restful api design

 

http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#snake-vs-camel

https://stripe.com/docs/api#charge_object

https://developer.github.com/v3/gists/#list-gists

 

 

url: v + n(s) + (phase)

adj

queryString: ?state=adj&order=property&query=cond

queryString:(POST) 真正请求的参数

 

 

list/financePlan?status=investable&order=openDate&query=status:open

list/financePlan/repay?

list/financePlan/5/repay?是否能识别?

detail/loanInvestor/5?state=invested..... 

invest/loan/125?state=...

 

add/user/before

add/user

add/user/after

v:

do

add

update

delete

list

detail

invest

 

status : 

investable, investing, invested

redeemable, redeeming, redeemed

 

phase:

before,after

优秀api鉴赏,布布扣,bubuko.com

优秀api鉴赏

原文:http://www.cnblogs.com/starfuxks/p/3821461.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!