- Newest
- Most votes
- Most comments
Hello,
Unfortunately, we do not have option to do advanced validation on the headers and query string parameters of incoming request. However, in case of Request Body, we can make use of JSON schema model to validate the payload structure.
As mentioned in the AWS documentation [1], API Gateway can perform the basic request validation, so that you can focus on app-specific validation in the backend i.e it validates if the required request parameters in the URI, query string, and headers of an incoming request are included and not blank.
In order to validate, if the query string parameter has a required pattern, you may need to implement a validation logic using Lambda Authorizer [2] or at the backend application.
References:
[2] https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
