examples/

directory
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2026 License: Apache-2.0

README

Examples

  • examples/minimal: simple JSON API with validation errors
  • examples/secure-profile: hardened middleware profile with metrics + tracing
  • examples/auth: Clerk JWT auth with an authorizer check
  • examples/policy: Cedar policy engine with context-based decisions
  • examples/idempotency: idempotent checkout endpoint using in-memory store
  • examples/webhook: webhook receiver with signature verification
  • examples/file-upload: multipart file upload with size limits
  • examples/pagination: limit/offset pagination with query limits
  • examples/spec-first: OpenAPI-driven handler skeletons with response validation
  • examples/outbound: SSRF-guarded outbound client with retries and breakers

Directories

Path Synopsis
Command auth shows Clerk auth wiring.
Command auth shows Clerk auth wiring.
Command file-upload shows a multipart upload endpoint with size limits.
Command file-upload shows a multipart upload endpoint with size limits.
Command idempotency shows idempotent endpoint wiring.
Command idempotency shows idempotent endpoint wiring.
Command minimal shows a basic API wiring example.
Command minimal shows a basic API wiring example.
Command outbound shows a guarded outbound HTTP client with retries and breakers.
Command outbound shows a guarded outbound HTTP client with retries and breakers.
Command pagination shows a limit/offset list endpoint with query limits.
Command pagination shows a limit/offset list endpoint with query limits.
Command policy shows policy-engine authorization with Cedar.
Command policy shows policy-engine authorization with Cedar.
Command secure-profile shows a hardened profile wiring example.
Command secure-profile shows a hardened profile wiring example.
Code generated by spec-first example; DO NOT EDIT.
Code generated by spec-first example; DO NOT EDIT.
gen command
Command webhook shows a minimal webhook receiver with signature verification.
Command webhook shows a minimal webhook receiver with signature verification.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL