T
T
Tatyana2015-06-03 17:45:26
JSON
Tatyana, 2015-06-03 17:45:26

How to transfer data to post request as json (using SoapUI)?

Good afternoon! Please help with data transfer to POST-request as Json!
I need to transfer data to a post request. Post request must have content-type = multipart/form-data. From one request, I get the mediaId I need and try to insert it into another Post request. I just don’t know how to insert the following json structure into the mediaIds parameter:
[
{
"mediaId": "4e2c056931d398831128ad2c6a45ec91",
"type": 1
}
]
Now, instead of this, I simply pass "4e2c056931d398831128ad2c6a45ec91".
I need to somehow add the type, and what it is equal to. I ask myself. It turns out that I need to pass the second static parameter to mediaIds in the target request. Can this be done through Property Expansion and how? And if just through request?4c36ca3f4fc748a18f007130999e4c83.png6a7e0ae3ad57458290b1cafe022e368e.pngbc4bc0dd244e42eaa7fa4a0c26c6e5a1.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question