Laravel RESTful API versioning design

前端 未结 3 1749
深忆病人
深忆病人 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:47

    You can not use dots, use underscores instead.

    But...

    A well-designed api must have BC between minor versions, so you do not need to create new version for minor update, instead you need to write compatible code.

提交回复
热议问题