赞
踩
相关推荐:【http】常见http headers
如何设计成一个资源?
- 尽量不用url 参数
- 传统apI 设计;/api/list?page=2
- restful api : /api/list/2
- 用method表示操作类型(传统api 设计)
- post 请求 /api/create
- post 请求 /api/update?id=10
- get 请求 /api/get?id=10
- 用method表示操作类型(restful api 设计)
- post 请求 /api/blog
- patch 请求 /api/blog/10
- get 请求 /api/blog/10
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。