Thanks for your feedback Jeff, I'll try to keep my api backward compatible as much as possible, so yes, the versioning should allow my users to keep their existing version unless the api compatibility is broken for some reason (data model changes, etc).
In that case, I think I will manage it with a major/minor versioning pattern. 1.1 -> 1.2 will not require client update but 1.3 -> 2.0 will. Better idea anybody? Thanks, Alex On Jul 2, 7:09 pm, "Jeff S (Google)" <[email protected]> wrote: > Hi Alex, > > This sounds like a reasonable approach to me. You might want to consider the > case where a user does not want to upgrade to a new version or is for some > reason unable. In those cases it might be helpful to have the older version > of the API running along side the newer version so that an old client could > still function if the user declines to upgrade. > > Happy coding, > > Jeff > > > > On Wed, Jul 1, 2009 at 9:50 AM, alexbf <[email protected]> wrote: > > > Hello all, > > > Let's say I have an application hosted on GAE that publishes an API. > > This API is used by a desktop client application. > > > The API will obviously change over time forcing the client app users > > to upgrade their app. > > > I would like the client app to know automatically that the API version > > has changed and ask the user to download the new version. I don't want > > to "check for update" when the application start but I want it to do > > it for every API call. > > > The strategy I have in head so far would be to add a Version parameter > > to all API calls so the client would pass its current version to the > > API and that version number would be validated against the current API > > version. If the version don't match, an exception is thrown and the > > client app will ask the user to upgrade the app. > > > Do you think this strategy is viable? What do you think are the pros > > and cons? Have you ever done something similar? Anything else to > > propose? > > > Thank you very much! > > Alex- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
