huma-endpoint - Huma REST API Endpoint Creation Guide
Create Huma API endpoints with routing, input/output structs, error handling, and OpenAPI documentation
Tags
Updated: 2026-03-22Capabilities
Typical Inputs
Typical Outputs
What this skill does
- register route
- define input struct
- define output struct
- create GET endpoint
- create POST endpoint
- create PUT endpoint
- create PATCH endpoint
- create DELETE endpoint
- handle error
- log operation
- document field
Inputs
- API instance
- route path
- HTTP method
- operation handler
Outputs
- HTTP response
- error response
Requirements
- Huma framework
- Go runtime
- context.Context support
