How to capture JSON Body from a POST Request | REST V2 in webMethods
@cvramanagupta0073 жыл бұрын
Nice Explanation..Thank you.
@ajayjoshi92565 ай бұрын
Thanks for clear explanation. I have a question. if my rest api accepts json payload as an input and user sends input structure other than json, then all the detailed integration server error is exposed to client side like error dump, detailed error msg, which is a security risk. how can this be avoided? Does changing way for processing of json helps in this??
@IndiPrideWebMethods5 ай бұрын
@@ajayjoshi9256 you need to handle the exception in code and set custom response back to the caller.
@ajayjoshi92565 ай бұрын
if my service accepts json as an input structure, and someone sends a request with random input structure. In that case Is server is showing all the details like error dump and other important details also. what is the correct way to avoid this in case input is not in json format??
@IndiPrideWebMethods4 ай бұрын
You just need to validate the incoming json content with doc type or scheme and handle exceptions with custom response.
@lakshmikavitha4752 жыл бұрын
Hi Can we send json stream in the body by using http get method
@IndiPrideWebMethods2 жыл бұрын
By using get, we cannot send body payload.
@aamerhijazi2 жыл бұрын
Dear Bro thanks for this video can you please explain about git request specific for path param like /test/{id} but I want id to be under document not directly inside service request.... Thank you again