I am trying to find how to mention JSON body in GET rest API, but not successful. There are no parameters in the REST api request, just the JSON body.
I can easily do it in Postman but struggling to find it in SoapUI pro or SoapUI. Attached the screenshot from Postman for the reference.
Hey @swetakumar
I don't think we can add request body for "GET". It should not have body by the definition, It should fetch data by using Query, Path parameters and Headers.
If we have to pass request body, need to add your REST resource(end point) as "POST" (If it's POST), then will see window to add request body.
Thanks!
I figured it out another solution. I can add a JSON body as a parameter in the value field with the Type 'Plain'.
Hi,
This doesn't add it into the body. That 'builder' creates the params to add at the end of the url for the GET reuqest.