Swagger Validation before the request is sent to backend.

Hi,

We have a requirement of validating the request against the swagger spec, and handle the errors if the validation fails in apigee itself,rather than backend giving a error response.

Also,it would be helpful to know what would be the best practice for the same and if there is any easy and generic way to do so?

Any help will be appreciated.

Thanks.

1 2 3,109
2 REPLIES 2

Hi..Thanks for the recommending the solution..But i have alreday implemented it.

It doesn't satisfy our requirements as:

1.We need a generic implementation.

2.It doesnt work for GET verb.

I also refered the below link:

https://github.com/apigee-127/swagger-tools/blob/master/docs/QuickStart.md

I was not able to implement it entirely as i am not much aware of node.js .

Can you please suggest any alternative for this?