Use this template when adding new endpoint documentation to the Brewski Docs wiki. Replace placeholder text and remove sections that do not apply.
-
Endpoint Group: e.g. Orders / Payments
-
Purpose: Single sentence explaining what the endpoint does.
-
Availability:
Public, Requires team membership, or Internal (internal endpoints must stay in the root README, not the wiki).
| Method |
Path |
Description |
POST |
/example/:id/action |
Short human-readable description. |
- Required scopes/roles.
- Any feature flags or plan entitlements needed.
-
:id (uuid, required) — description.
-
filter (string, optional, values: ...) — description.
Headers
-
Authorization: Bearer <token> — describe when required.
Content-Type: application/json
- Document each field with type, requirement, validation limits, and default behaviour if omitted.
- Explain derived values, computed flags, pagination metadata, etc.
| Status |
Body Example |
When It Happens |
400 Bad Request |
{ "message": "validation_error" } |
Input missing required field. |
401 Unauthorized |
{ "message": "unauthorized" } |
Missing/invalid token. |
403 Forbidden |
{ "message": "forbidden" } |
Role lacks permissions. |
404 Not Found |
{ "message": "not_found" } |
Resource ID not visible to user. |
- List database writes, emitted events, background jobs, or cache invalidations.
Rate Limiting & Idempotency
- Mention idempotency keys, rate buckets, or retry strategies when applicable.
- Provide curl example, client SDK snippet, or workflow diagram if useful.
| Date |
Author |
Change |
| 2025-02-06 |
Your Name |
Initial draft. |
{ "sampleField": "value", "optionalField": 123, "nested": { "flag": true } }