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

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.

主站蜘蛛池模板: 明水县| 信阳市| 大荔县| 名山县| 陈巴尔虎旗| 耿马| 南召县| 肇州县| 弥渡县| 广平县| 铁力市| 广丰县| 延边| 扎鲁特旗| 余庆县| 巩留县| 教育| 嵊泗县| 衡阳市| 红原县| 金沙县| 庄河市| 景德镇市| 宜城市| 茶陵县| 安阳县| 瑞昌市| 扎赉特旗| 孝感市| 抚松县| 涿州市| 左贡县| 治县。| 厦门市| 交城县| 紫云| 本溪| 隆子县| 敦化市| 和平区| 枝江市|