enhancement request: Add support for validating requests on the API Gateway before proceeding with the integration #10021
Labels
aws:apigateway
Amazon API Gateway
aws:apigatewayv2
Amazon API Gateway v2
priority: high
status: in progress
Currently being worked on
type: feature
New feature, or improvement to an existing feature
Is there an existing issue for this?
Enhancement description
On AWS, you can configure API Gateway to perform basic validation of an API request before proceeding with the integration request.
When the validation fails, API Gateway immediately fails the request, returns a 400 error response to the caller, and publishes the validation results in CloudWatch Logs. Exporting the results to CloudWatch isn't strictly required for a first revision of this ticket.
API Gateway can perform the basic request validation, so that you can focus on app-specific validation in the backend. For validation, API Gateway verifies either or both of the following conditions:
The applicable request payload adheres to the configured JSON schema request of the method.
This reduces unnecessary calls to the backend. More importantly, it lets you focus on the validation efforts specific to your application. You can validate a request body by verifying that required request parameters are valid and non-null or by specifying a model schema for more complicated data validation.
🧑💻 Implementation
No response
Anything else?
This is a user-requested feature.
The text was updated successfully, but these errors were encountered: