Laravel RESTful API versioning design

前端 未结 3 1762
深忆病人
深忆病人 2021-01-30 05:01

I am new to Laravel (4 and 5) and recently I am working on a RESTful API. In order to allow multiple version of the API, I am using URL to determine the version.

I rea

3条回答
  •  臣服心动
    2021-01-30 05:36

    I created a simple Laravel package to support Laravel API versioning it adds fallback functionality to routes. I personally needed this long ago but didn't realize it will be achieved with such a tiny package.

    https://github.com/mbpcoder/laravel-api-versioning

提交回复
热议问题