How you define routes is your choice, however, the following is an example of a route definition in routes/api.php
.
There will be a Route method implemented shortly.
Notes: Things to set up:
- $api_filter
- $api_exposed_relationships
- $api_included_relationships
- $api_model_name_singular
- $api_model_name_plural