Routes and integrations
An API separates its public request contract from backend implementation. A route identifies an HTTP method and path; an integration tells API Gateway where to send matching traffic. HTTP APIs and REST APIs differ in features, so choosing one requires checking authorization, transformation, deployment, and operational requirements first. For example, gET /health can integrate with a Lambda handler; POST /orders is a different route even if both use the same function.
GET /health can integrate with a Lambda handler; POST /orders is a different route even if both use the same function.
Follow a mobile application's request to GET /products/42. The client resolves the API hostname and establishes TLS. API Gateway matches the HTTP method and configured route, then sends an integration request to the chosen backend. The backend receives the integration's event format rather than an arbitrary copy of the client's network connection. Its response must satisfy the selected integration contract before Gateway returns a client response.
A route is the method/path rule that selects handling. An integration is the connection from that rule to the backend. A stage is a deployment context with behavior depending on the API type. Changing a handler without deploying the relevant API configuration can leave clients using older route settings. REST APIs and HTTP APIs have different feature sets and payload conventions. Choose from required features, then read the exact API type's documentation; combining examples from both types often creates a valid-looking configuration with the wrong request or response shape.
A precise route table makes client behavior predictable and prevents backend changes from accidentally creating undocumented interfaces that callers learn to depend on.
Mixing instructions for REST APIs and HTTP APIs produces incorrect console steps or event parsing because their integration and payload details can differ.