官术网_书友最值得收藏!

Including the version in the URL

Including the version in the URL is an easy strategy for having the version number added at the end of the URI. Let's see how this is done:

https://api.domain.com/v1/
https://api.domain.com/v2/
https://api.domain.com/v3/

Basically, this model tells the consumers which API version they are using. Every breaking change increases the version number. One issue that may occur when the URI for a resource changes is that the resource may no longer be found with the old URI unless redirects are used.

主站蜘蛛池模板: 海阳市| 临漳县| 宣武区| 丹凤县| 阿克苏市| 铁岭县| 衢州市| 抚顺市| 涿州市| 麦盖提县| 南宁市| 界首市| 木兰县| 临洮县| 文登市| 北宁市| 江北区| 巫山县| 象州县| 兖州市| 和平区| 鹤峰县| 张家口市| 眉山市| 化德县| 芜湖县| 册亨县| 日土县| 道真| 德清县| 枝江市| 安宁市| 黎平县| 措美县| 历史| 河南省| 东兴市| 南开区| 丽江市| 分宜县| 邵武市|