Best Practise for empty body validation for Post operation

We are opening up for one Post back service through Apigee. Can any one suggest that performing validation of empty body for Post at the Apigee layer or leave it to the back end service?

0 4 529
4 REPLIES 4

Not applicable

You can check request.header.Content-Length to 0 for empty payload

@Priyadarshi Ajitav Jena. Thanks for your comment. Would like to know is it suggetable to implement at Apigee layer or bake end layer?

Not applicable

this type of restriction can be done in Apigee. And I recommend doing in apigee for these as the wrong requests should not create load on the backend.

Request validation in Apigee will decrease load on backend.

Thank you for your suggestion