rest api的版本设计
http://www.troyhunt.com/2014/02/your-api-versioning-is-wrong-which-is.html
这篇文章写得很好,介绍了三种实现web api版本化的三种方式。我从评论里又收集到两种方式,所以一共是5种:
方式一:利用URL
@Controller @RequestMapping(headers="apt-version=2") public class TestControllerV2 { }
另外这个网站列举了很多国外的有名网站是如何实现web api版本控制的。
http://www.lexicalscope.com/blog/2012/03/12/how-are-rest-apis-versioned/
https://github.com/cailin186/restapi-versioning-spring/blob/master/src/main/java/com/mindhaq/apiversions/web/AddressController.java
http://stackoverflow.com/questions/20198275/how-to-manage-rest-api-versioning-with-spring
参考
让SpringMVC支持可版本管理的Restful接口
http://www.cnblogs.com/jcli/p/springmvc_restful_version.html
restAPI 设计指南
http://www.ruanyifeng.com/blog/2014/05/restful_api.html
相关推荐
futurechallenger 2020-07-10
liuqipao 2020-07-07
染血白衣 2020-11-16
SAMXIE 2020-11-04
一个智障 2020-11-15
学习web前端 2020-11-09
yiranpiaoluo 2020-11-04
lxhuang 2020-11-03
88274956 2020-11-03
82387067 2020-11-03
huangliuyu00 2020-10-29
sichenglain 2020-10-27
Dayer 2020-10-27
小马的学习笔记 2020-10-23
liuweiITlove 2020-10-14
kjyiyi 2020-10-10
fanjunjaden 2020-10-09
zhyue 2020-09-28
huangliuyu00 2020-09-24