API Docs & Architecture Decision Records
3 exercises — write API endpoint reference docs, Keep a Changelog entries, and Architecture Decision Records with Context / Decision / Consequences.
0 / 3 completed
Advanced writing formats
- API docs: method + path · summary · auth · parameters (type, required) · responses (code + meaning) · notes
- CHANGELOG:
## [version] — YYYY-MM-DD· Added / Changed / Fixed / Deprecated sections · ticket refs - ADR: numbered title · Status (Proposed/Accepted/Deprecated) · Context · Decision · Consequences (both ✓ and ✗)
1 / 3
A backend developer is writing API reference documentation for a new endpoint. Which description of the POST /api/v1/users/{id}/password-reset endpoint is most complete and professional?
Option B is the professional standard. It includes every required field: HTTP method + path, a plain-English summary, auth requirements with scope, path parameter type/requirement, request body note, multiple response codes with meanings, and operational notes (rate limiting, privacy — non-obvious but important). Option A is two sentences — missing all the detail developers need. Option C has wrong status code ("200" for an async operation that queues an email should be "202"), mixes fields informally. Option D uses a non-versioned path, returns "ok/error" (not proper HTTP codes), and is missing all parameter descriptions.