API Security — Request/ Response Validation using WSO2 API Manager

API Management with WSO2 API Manager
A sample API schema Swagger
JSON Schema Validator internals — Source: WSO2
Send a valid request — Source: WSO2
Send an invalid request — Source: WSO2
Sample JSON Validator response for an invalid request
Receives a valid response — Source: WSO2
Receives an invalid response — Source: WSO2
Sample JSON Validator response for an invalid response from the backend
When the JSON schema validation is enabled, it will trigger the payload to be built for all requests and responses. Therefore, this will have an impact on the round-trip time of an API request. Pay extra attention when enabling this feature.
Enable JSON Validator using API Publisher
Enable JSON Schema Validator using API Publisher

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store