Api Design¶
Workflow¶
- Identify consumers and concrete request/response examples before choosing endpoints. Reuse the existing framework and contract conventions.
- Specify methods, status codes, content types, validation, error shape, authorization per resource and supported compatibility behavior.
- Define pagination, retry/idempotency and concurrent-write behavior where consumers need them. Do not require JWT, version prefixes or microservices by default.
- Keep secrets out of URLs and logs. Bound input size and expensive operations. Separate domain errors from transport errors.
- Provide an OpenAPI contract when appropriate and test consumer-visible behavior, permissions and failure cases.
Completion¶
Return the concrete result, verification evidence and any material unresolved limitation. Keep documentation proportional to the change and preserve human feedback.
Focused references¶
- Detailed examples: load only the section relevant to the task.
Canonical source: skills/architecture/api-design.md.