Rest API versioning to support multiple versions at the same time
I have a requirement to version a REST API, and both V1 and V2 should run at the same time. These can be pointed to different application versions. The Consumer should be able to call both the versions. The service package is the same, only difference in the endpoint URL is the version. Example below.
https://myserver/prweb/PRRestService/myservicepackage/v1/myservice
https://myserver/prweb/PRRestService/myservicepackage/v2/myservice
What is the recommended way to achieve this? What is the use of the "Service version" attribute in Service REST form?
***Edited by Moderator: Pallavi to update platform capability tags***