Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support versioning of endpoints #30

Open
rnett opened this issue Oct 24, 2021 · 1 comment
Open

Support versioning of endpoints #30

rnett opened this issue Oct 24, 2021 · 1 comment

Comments

@rnett
Copy link
Owner

rnett commented Oct 24, 2021

We should somehow support explicit versions for endpoints, i.e. getItem/v2/, and perhaps for servers as well. Overloading handles this implicitly when signatures change, but when only the behavior changes, problems start. The actual method will have to change anyways for Kotlin's sake, so perhaps the best solution here is adding a name field to KrosstalkMethod.

@rnett
Copy link
Owner Author

rnett commented Oct 24, 2021

There's another wrinkle here: old versions shouldn't be exposed on the client. Perhaps the best solution is to use #32, have a krosstalk for each version, and include the old ones into the current one. This works well for server version, but not so much for endpoint versioning. Could old versions just have their client methods deleted, or deprecated, and I don't have to deal with it? Requires having server-only methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant