The RESTful Approach

The RESTful Approach

Our app represents a good example of the RESTful API, so what is that and why it is appropriate.

Controller’s Methods

HTTP VerbPath (URL)Action (Method)
GET/resultsindex
GET/results/createcreate
POST/resultsstore
GET/results/{result}show
GET/results/{result}/editedit
PUT/results/{result}update
DELETE/results/{result}destroy

Tip: In the CLI we can run php artisan routes to see all the routes associated with our Laravel application.