marcj / php-rest-service

Php-Rest-Service is a very simple and fast PHP class for server-side RESTful JSON APIs.
MIT License
216 stars 74 forks source link

API versioning #25

Open drodil opened 8 years ago

drodil commented 8 years ago

Hi,

I think it would be nice addition to be able to set which version of the specific API is used. The used version could be in one of the API path params (for example in Twitter and LinkedIn). Example request could be for example to path /v1/admin/logged-in which would force the API version to 1. Developer could then easily create new API versions and handle backwards compatibility by version.

http://apiux.com/2013/05/14/api-versioning/

dlangille commented 7 years ago

Why can't you do that with the existing code?