Skip to content

Commit

Permalink
Basic versioning description
Browse files Browse the repository at this point in the history
  • Loading branch information
hsoberon committed Nov 21, 2024
1 parent fbc72b0 commit c2edee7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/Documentation/versioning.md
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,```




0 comments on commit c2edee7

Please sign in to comment.