feroult / yawp

Kotlin/Java API framework for Google Appengine
http://yawp.io
MIT License
132 stars 20 forks source link

API versioning #114

Open raderio opened 7 years ago

raderio commented 7 years ago

How to do API versioning? Is there a documentation about this?

feroult commented 7 years ago

Hi @raderio.

You can have multiple versions of your API using the Google Appengine's support for it. You just need to configure your appengine-web.xml file for each version.

The docs on how to configure multiple versions.

Here you can find the limit of versions per app.

Different versions will have different base urls to be configured by the client. So you'll have add a logic to set it based on your client's version, like this:

yawp.config(function (c) {
    c.baseUrl('http://versionXYZ.myapp.appspot.com/api');
});

Regards!