I have seen this post and appreciate that discussion: API RESTful Version | InterSystems Developer Community | Business Service
However our org requirement is for a caller to provide the API version in the HTTP request header. I am finding the cleanest way to route to the correct class using the header version. My classes are setup as
API.Service.v1
API.Service.v2
Of course only v1 exists now but when v2 goes live on future day, API.Service.v2 will extend API.Service.v1 so we only have to override the method that changes or add a new method if needed.
%20(2).jpg)
%20(3).jpg)

.png)


