Willem3141 / navi-reykunyu

A user-friendly online Na'vi dictionary, supporting translations to and from English, German, French, and other languages
https://reykunyu.lu
GNU General Public License v3.0
14 stars 6 forks source link

Add API versioning #174

Open Willem3141 opened 2 months ago

Willem3141 commented 2 months ago

Requests should send a version number. If no version number is provided, it defaults to 1 (i.e., the current version of the API).

After making this change, backwards-incompatible changes can be made by bumping the version to 2. The main code should then be updated to the new version. If the server receives a request for 1, there should be a small wrapper that "emulates" the old API version.