-
Notifications
You must be signed in to change notification settings - Fork 0
API Design Standards
simitben edited this page Apr 9, 2026
·
1 revision
- use nouns and plural resources
- use
/api/v3/<resource>
- JSON in/out
- success:
status/data/meta - error:
status/errors/meta - list/document collection endpoints must accept
updated_fromandupdated_tofilters - detail-by-id endpoints do not require updated range filters
- validate before service/repository execution
- return HTTP status aligned with error class (400/401/404/422/500)
- request:
page,per_page - response:
meta.pagination
- path-based major versioning (
/api/v3)