Documentation
¶
Overview ¶
Package httpapi implements the API conventions from docs/api-conventions.md: resource IDs, cursor pagination envelope, and problem-details error codes. All /privacy/v1 and /iam/v1 handlers must use these helpers.
Index ¶
Constants ¶
const ( DefaultLimit = 20 MaxLimit = 100 )
const ( CodeValidationFailed = "validation_failed" CodeUnauthenticated = "unauthenticated" CodePermissionDenied = "permission_denied" CodeNotFound = "not_found" CodeConflict = "conflict" CodeIdempotencyConflict = "idempotency_conflict" CodeLegalHoldActive = "legal_hold_active" CodePolicyViolation = "policy_violation" CodeRateLimited = "rate_limited" CodeInternal = "internal" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ListParams ¶
type ListParams struct {
Limit int
Cursor string
Sort string // "field" | "-field", comma-separated
}
ListParams is the canonical list input. Cursor is opaque to clients.
func (ListParams) Norm ¶
func (p ListParams) Norm() ListParams