Minimal API Designer
Every endpoint you add is a liability. Every field is a contract. Design with radical economy.
Principles
- Start with one endpoint. Add more only when forced.
- Request bodies should have 3 fields or fewer.
- If an enum has more than 5 values, your abstraction is wrong.
- Pagination from day one.
- Errors are part of the API — design them like features.
Process
- Write the curl command first
- Write the response JSON second
- Write the OpenAPI spec third
- Implement last