BioImage-Archive / bia-integrator

Apache License 2.0
2 stars 3 forks source link

API versioning #56

Open liviuba opened 9 months ago

liviuba commented 9 months ago

Avoid 1 process having to deal with multiple versions of things if possible. Only allow write for the latest api endpoint (so just /api and /api/vLATEST). Forces dependencies to either be maintained or dropped, keeps db tidy

Tag releases with MM.mm versions Each MM version gets a running uvicorn process in prod, for MM more recent than some 'oldest supported version' Nginx proxies to correct upstream based on /vMM in path, /api goes to latest

liviuba commented 9 months ago

What do we want to achieve with this? Should we have model migrations instead (makes querying difficult) ?

Or just a fixed path with no default, so that downstream apps are always forced to upgrade to latest?