Reputation: 846
So I created a resource and a GET action on my Api Gateway. I correctly pass my url parameters through Method Execution and through Integration Request via Mapping Templates. Currently I am having my Api endpoint execute a Lambda function when hit and there are parameter validates in my Lambda function. I was hoping there would be a way for Api Gateway to tell me validate the url parameters for me. But I can't find any documentation or blog that teaches me how to do that. I heard in a previous post that this feature may come in later if people complain to AWS enough, but that was like last year.
Upvotes: 1
Views: 4152
Reputation: 7344
This is still on our backlog, we don't yet validate incoming parameters.
The feature request we have to is just validating that they are present. Basically you would say a parameter is required and then if the parameter was missing, API Gateway would reject the request before it reached the Lambda function.
Upvotes: 3