Actions handled by a Controller as a template for all controllers:
| HTTP Method | URL | Controller Method |
|---|---|---|
| GET | /customers |
index |
| GET | /customers/create |
create |
| POST | /customers |
store |
| GET | /customers/{customer_id} |
show |
| GET | /customers/{customer_id}/edit |
edit |
| PUT/PATCH | /customers/{customer_id} |
update |
| DELETE | /customers/{customer_id} |
destroy |
These are the layers used in this project structure:
──── Postman Client (GET, POST, ...)
└─── Controller (API Layer)
└─── Service (Business Logic)
└─── DAO/Repository (Persistence Logic)
└─── Database