ZP
4 years agoOccasional Contributor
Possible to use JSON Data from external file against the PATCH/PUT request?
In ReadAPI (SOAPUI),
I have a need to submit multiple patch JSON requests that are stored in the directory.
Q1) I have looked at the following solution that works for the POST requests but i am not sure if this will work for the PUT/PATCH requests too? I don't think it is working correctly against PATCH.
Q2) Also the request is going to have the parameters in them. Does the parameter values gets considered while submitting PATCH requests in such a way?
Thanks for your help..
- Hey ZP,
Answer to Q1. The method shouldn't make any difference. I've used both PUT, PATCH and POST using a datasource (directory) step and it worked fine. What version of ReadyAPI! are you using? More importantly, what makes you believe it's not working correctly?
Answer to Q2. Can you rephrase your question please? as i'm not understanding the question you asked.
In the meantime however, REST requests by definition supports parameters (either URI/Resource/Template or Query, or Matrix, or Header parms).
You can also parameterise attributes in the payload you are submitting. The parameters form part of the request.
Ta
Rich