Documentation
¶
Overview ¶
Package api-rest demonstrates the api/rest builder: define routes with codec-backed types, get typed Decode/Encode helpers, and generate a full OpenAPI 3.1 spec — all without importing net/http or any HTTP framework.
The same RouteHandle.Decode and RouteHandle.Encode helpers work unchanged with net/http, Gin, Chi, Echo, or any other HTTP library.
Run with: go run ./examples/api-rest
Click to show internal directories.
Click to hide internal directories.