Replies: 2 comments
-
CC: @coggsflod |
Beta Was this translation helpful? Give feedback.
0 replies
-
We also need to add a section to the README describing how to use v2 endpoints, as well as a README for v2 folder containing the current implemented features so it's easy to see when v2 matches the v1 feature set describted in the repo README |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Due to a recent request about how to migrate to project to v2, we need a proper documentation of how we want to migrate this project from v1 to v2 API.
Requirements:
The following requirements have to be met while migrating:
Code Management:
Adding a v2 folder to the project where all code regarding v2 API requests belong to.
To add new code for v2 we will add a
v2
version struct to ourAPI
and implement v2 API requests as part of the implicit v2 interface.e.g:
This allows us to have distinct calls between v1 (default) and v2 by calling either:
Migration
Once the feature set of v2 matches v1 we can remove v1 implementation and as well as the v2 API struct and move v2 implementation to the default API implicit interface implementation and release it with a major version release.
Beta Was this translation helpful? Give feedback.
All reactions