Overview
The general flow is as follows:
- Assess the task
- Create
Migration(if needed) - Create
Model - Create
Model Factory(For unit tests) - Create a
Controllerbased on the model name. - Create the
routesbased on the model / controller names - Create our
RequestFormwhich extendsJsonRequestFormto protect the routes in the Controller - Write out your functionality (usually CRUD functions) and this should be done in the
Model - Create an
Integration Testin a file named like the Controller, and test each route with at least one function. - Record the responses from each call in the API map.