Posted On: Apr 11, 2017
You can now configure Amazon API Gateway to automatically perform basic request validation for your APIs. This reduces the burden of needing to check for required parameters in requests made to your API and instead allows you to focus on application-specific validation efforts. Previously, you needed to manually implement basic validation of input data in your API backends, making it more likely to introduce conflicts between your validation logic and API models.
To get started, you simply define your API’s request validators using the API Gateway console, CLI or SDKs, or by including validators in your API’s Swagger definition. API Gateway can validate that API requests have the required headers or query parameters and that the request payload adheres to the specified schema of the method. If a validation does not pass, API Gateway fails the API request with a 400 error and publishes detailed error results in Amazon CloudWatch Logs.
Visit here to learn more about this feature. Please visit our product page for more information about Amazon API Gateway.