API Design
v1.0.0
Reviews REST API design for consistency, correctness, and security — covering endpoint naming, input validation, HTTP status codes, pagination, and rate limiting. Poorly designed APIs create integration headaches that compound with every new consumer.
Security(4)
Architecture(9)
Make POST Creates Idempotent via Idempotency Keys
Accept a client-supplied Idempotency-Key header on create/payment endpoints so retried requests do not create duplicate resources.
Return a Consistent, Structured Error Body
Every error response should share one machine-readable shape (code, message, details) so clients can parse failures uniformly.
Return 201 Created with a Location Header on Resource Creation
On successful creation respond with 201 Created, a Location header pointing to the new resource, and ideally its representation.
Automate API Design checks on every PR
BeforeMerge scans your pull requests against all 14 API Design rules automatically. Get actionable feedback before code ships.