Skip to content

http-api capability

http-api adds a Chi-based REST API layer to your Go service, wired with production middleware from day one.

  • Chi router with full middleware chain (RequestID, RealIP, Recoverer, OTel)
  • RFC 7807 Problem Detail error responses
  • Pagination helpers
  • OpenAPI spec
  • Handler patterns with typed request/response structs

Reach for http-api whenever you need to expose a REST API or webhook endpoint. It’s the foundation most other transport capabilities build on — cors, auth-jwt, rate-limiting, health, and websocket all require it.

Suggests: rate-limiting, auth-jwt, cors, health, request-id

Terminal window
verikt new my-service --language go --cap http-api
# or add to an existing service:
verikt add http-api

auth-jwt

JWT authentication middleware for securing routes.

health

Health and readiness endpoints for orchestrators.

rate-limiting

Token bucket rate limiter for abuse prevention.