This PR adds API_VERSION_v2 (routers/default is metadata endpoint since OTP0.19) and API_VERSION_v3 (since 1.0.0 busish and trainish modes are not supported any more and cause 404 errors when requested).
New versions are just added as new constants. In future, a version dependend strategy would be a better approach to handle API differences.
This PR adds API_VERSION_v2 (routers/default is metadata endpoint since OTP0.19) and API_VERSION_v3 (since 1.0.0 busish and trainish modes are not supported any more and cause 404 errors when requested).
New versions are just added as new constants. In future, a version dependend strategy would be a better approach to handle API differences.