beginnerApplication Layering
The Full CRUD Resource
Decide what you would build from the brief alone. Everything below it is available, but the exercise stops working if you open it first.
The brief you were given
Round out /notes with list, read, update and delete. Keep the code organised so it can grow.
The trap — the wrong fix that looks right
Building the repository, service and controller layers first because that is what a well-structured application looks like, and ending up with three files that each forward one call. Layers are not free: every one is a place to look during debugging and a place a rule can be misplaced. Add a layer when something needs to live in it. The genuine warning sign here is not "too few layers" — it is the handler that has started writing queries (Transport, Application, Domain, Infrastructure).