Slim 3 API Versioning


#1

How best to handle API versioning?
Is a route group the best way, or is there something else?

Thanks
Kev


Handling Controllers for API versioning
#2

If I understand you correctly, you’re asking how to handle different versions of your API.

I would do the following (via Routes):

/site/api/v1

/site/api/v2

etc.

Hope this helps.