6 Examples
6.1 Scope: The "God Service" vs. Single Capability
// POST /api/handleStuff
// Description: Missing.
{
"action": "register_and_notify", // Mixing logic
"data": { ... }, // Generic object with no schema
"misc_flag": true
}// POST /benefits/unemployment/claims
{
"openapi": "3.1.0",
"paths": {
"/claims": {
"post": {
"summary": "Submit Unemployment Claim",
"description": "Creates a new claim for a specific citizen context.",
"operationId": "submitClaim",
"tags": ["Unemployment"]
}
}
}
}6.2 Data Models: Vague Inputs vs. Explicit Types
6.3 Error Handling: Ambiguity vs. Structured Logic
6.4 Naming: Inconsistency vs. Documentation
Last updated
Was this helpful?