Reject bad requests before invoking the backend
How API Gateway REST API method validators check required parameter presence and nonblank values, apply body models by content type, and reject invalid requests before invoking the backend, and where application validation is still needed, including for H
Use an API Gateway REST API when you need built-in request validation. An API Gateway HTTP API does not provide this REST API feature. In a REST API, you configure a request validator, register it with the API, and assign it to each method that should use it.
A method validator can check required parameters, the request body, or both. If an enabled check fails, API Gateway returns 400 Bad Request without invoking the backend. The diagram shows the path a request takes when the gateway lets it through.
Stage 1 of 4: The API client sends a request that can include path and query parameters, headers, and a body.
Next up: Complete the diagram on what you just read.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.