- Hands-On RESTful Web Services with TypeScript 3
- Biharck Muniz Araújo
- 60字
- 2021-07-02 12:19:22
Versioning in the subdomain
In regard to versioning in the URL, subdomain versioning puts the version within the URI but associated with the domain, like so:
https://v1.api.domain.com/
https://v2.api.domain.com/
https://v3.api.domain.com/
This is quite similar to versioning at the end of the URI. One of the advantages of using a subdomain strategy is that your API can be hosted on different servers.