Answered

How we can add body to the "GET" request

We have a "GET" endpoint which requires passing objects in the body. Is there a way to do this in Subject7?

Is possible to add "Payload" section fro "GET" method as well

 

0
5 comments
Avatar
Joseph Hamdan

Hasib,

Thank you for taking the time to write to us. We are looking into your post and will provide a response as soon as possible.

Regards,

Subject7 Team

0
Comment actions Permalink
Avatar
Rex Feizi

Straight from a Google search for the keyword "does get method have body"

 

The HTTP GET method is used to request a resource from the server.

Requests using GET method should only retrieve data (the server must not change its state).

If you want to change data on the server, use POST, PUT, PATCH or DELETE methods. The GET requests cannot have a message body.

0
Comment actions Permalink
Avatar
Hasib Rostaiee

Thank you Rex,

We have a GET Method which retrieve data but also have to pass an xml body (not sure why it's developed this way). I will talk with dev team to see if we can use parameter instead or if they can change it. Postman allows to add a body in the GET request so I thought maybe we can have similar option. 

 

0
Comment actions Permalink
Avatar
Joseph Hamdan

Hasib,

Would it be possible to send us a video highlighting how this works on your side? Basically to show the below:

1- Usage in both Postman and SoapUI (How you create query and put your XML)

2- Display whether the results are really different if you provide body parameters or not.

Regards,

Subject7 Team

0
Comment actions Permalink
Avatar
Hasib Rostaiee

Hi Joesph, 

I just spoke to dev team and they found it it's not a good practice to pass body in the GET request. They are going to change the service either a POST (if it's search) or GET with parameters.

For now it's a low priority so it's OK if the GET request doesn't accept body.

0
Comment actions Permalink

Please sign in to leave a comment.