-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Versioning | ||
|
||
|
||
The cakephp-api supports versioning which allows for better management of features or plugins compatibility. | ||
|
||
Cakephp-api use URL versioning. With a default semantic style like v1, v2, v3 | ||
|
||
**With versioning:** _www.example.com/api/**v2**/users_ | ||
|
||
**Without versioning:** *www.example.com/api/users* | ||
|
||
|
||
|
||
-- | ||
|
||
### Enable versioning: | ||
|
||
To enable it, you just need to turn true the configuration in the `config/api.php` | ||
|
||
```'useVersioning' => true,``` | ||
|
||
### Testing | ||
|
||
If you want to use versioingn on testing. Enable it in the `test/Config/api.php` | ||
|
||
```'useVersioning' => true,``` | ||
|
||
|
||
|
||
|