GitHub Repository


Since Laravel does not support API versioning, apiato provide a very easy way to implement versioning for your API.

How it works


When creating a new API endpoint, specify the version number in the route file name following this naming format {endpoint-name}.{version-number}.{documentation-name}.php.



Automatically the endpoint inside that route file will be accessible by adding the version number to the URL.


Version the API in header instead of URL

First remove the URL version prefix:

  1. Edit app/Ship/Configs/apiato.php, set prefix to 'enable_version_prefix' => 'false',.
  2. Implement the Header versioning anyway you prefer. (this is not implemented in Apiato yet. Consider a contribution).