AnsweredAssumed Answered

POST Body in Rest

Question asked by jonatsan on May 10, 2017
Latest reply on May 18, 2017 by dinho1705

Good Afternoon Sirs,

 

I'm trying to create a VS image from rrpairs in DevTest version 8.5, the request is a POST request  with a json body like a following file:

 

POST /api/peticiones HTTP 1.1

Content-Type: application/json

{"data":{"age": "15", "name":"Rich"}}

 

Devtest by default puts the body content in the URL as parameters like a GET request, changing the url depending

the body content.

 

In the example the result is:

POST: /api/peticiones?data_age=15&data_name=Rich

 

but the request is a POST, and I want to keep the POST request without the parameters and without changing the URL.

Just, keeping the same URL and choosing the differents responses by the body not changing the URL.

 

Is there any possibility to do this?

Best regards.

Jonathan.

Outcomes