In this tutorial, we show you how to add versioning to REST API. In this example, we will look at 4 ways of versioning with Spring Boot RESTful services. URI Versioning, Request Parameter Versioning, Custom Request Header Versioning, Accept header Versioning.