Skip to content

Latest commit

 

History

History
28 lines (11 loc) · 588 Bytes

versioning.md

File metadata and controls

28 lines (11 loc) · 588 Bytes

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,