1.REST APIs vs HTTP APIs
REST APIs carry the full feature set — API keys, per-client throttling via usage plans, request validation, AWS WAF, private endpoints — at a higher price. HTTP APIs are a minimal, cheaper subset built for the common case: JWT authorizers, Lambda/HTTP integrations, and automatic deployments, without API keys or request validation.
Key features
- REST APIs: full feature set — API keys, usage plans, request validation, AWS WAF, private endpoints, mock integrations
- HTTP APIs: minimal, lower-cost subset — JWT authorizers, automatic deployments, no API keys/request validation/WAF
- A stage (e.g. "prod", "dev") is a named, deployed snapshot of the API's configuration; a deployment publishes changes to a stage
- Authorizers run before the backend integration: Lambda authorizer (custom logic), JWT authorizer (HTTP APIs only), or IAM
- A usage plan (REST APIs only) ties API keys to throttle and quota limits per client
- Client request
- leads to Authorizer (checked by)
- Authorizer — Lambda, JWT, or IAM
- leads to Stage (routed through)
- Stage — deployed config snapshot
- leads to Integration (invokes)
- Integration — Lambda, HTTP, AWS service
Signature
REST API (full features) vs HTTP API (minimal, cheaper)
REST API = full feature set (API keys, usage plans, request validation, WAF) at higher cost. HTTP API = minimal, cheaper subset (JWT authorizer, automatic deployments). Stage = deployed config snapshot; a deployment is what publishes to it.