Skip to content

RESTful controller

Kevin edited this page Feb 17, 2017 · 2 revisions

A crontoller must be created for each ressource. Each controller will implement at least the four CRUD basic operations following the RESTful principle:

  • GET - id (Retrieve a single resource)
  • POST (Create a new resource in a collection)
  • PATCH - id (Update a resource)
  • DELETE - id (Delete a resource)

And if needed a GET all operation:

  • GET - All (Retrieve all resources in a collection)

Clone this wiki locally