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

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.

主站蜘蛛池模板: 威远县| 平度市| 广汉市| 同仁县| 濮阳市| 兴义市| 南和县| 宜良县| 罗平县| 隆尧县| 大邑县| 政和县| 鹤庆县| 乐至县| 北京市| 福建省| 新沂市| 安西县| 兴海县| 通道| 辽阳县| 瓮安县| 宣化县| 林口县| 上蔡县| 蒙阴县| 敦化市| 靖宇县| 南阳市| 肥东县| 庆安县| 上虞市| 丹东市| 文水县| 澳门| 古田县| 湖口县| 和顺县| 普兰店市| 徐汇区| 巴楚县|