Reputation: 397
I dont see any options i need to put json body in my get request
Upvotes: 2
Views: 9946
Reputation: 334
That is because GET should not have body by the definition. For GET all parameters should be inside URL (path and querystring) and Headers. If you need to have a body you should use POST or PUT.
Upvotes: 3
Reputation: 873
I think you a confusing GET and POST.
http://hostname/path?param1=value1¶m2=value2¶m3=value3
This is a GET string. There is no body. All parameters are delivered as a part of the GET string. Everything after "?" are considered parameters, and they are separated by "&" and name-value pairs are separated by "="
If you have a JSON body, that you want to submit, you need to do a POST. Once you have created a REST teststep, which is configured to do a POST, the textbox for editing your body should show up as expected.
Upvotes: 1