Overview

The general flow is as follows:

  1. Assess the task
  2. Create Migration (if needed)
  3. Create Model
  4. Create Model Factory (For unit tests)
  5. Create a Controller based on the model name.
  6. Create the routes based on the model / controller names
  7. Create our RequestForm which extends JsonRequestForm to protect the routes in the Controller
  8. Write out your functionality (usually CRUD functions) and this should be done in the Model
  9. Create an Integration Test in a file named like the Controller, and test each route with at least one function.
  10. Record the responses from each call in the API map.