Can an entire object from a REST API response be used in the next REST API?
in SOAtest
Best Answer
-
jakubiak Posts: 705 admin
Add a XML or JSON Data Bank (depending on payload format), and extract the root element of the payload.
5
Add a XML or JSON Data Bank (depending on payload format), and extract the root element of the payload.
Answers
One of the services I'm having a problem with imported via OpenAPI as something other than json. That is stopping the use of the data bank fields.
jakubiak confirmed for me json data bank will work and that I had an issue I did not realize.
Thanks.
@jakubiak Could you please provide the steps for json databank?
My requirement is to save a payload from one request using an id and retrieve the data using that id using another request.
Thanks in advance
If you haven't done so already, I recommend reviewing the SOAtest tutorial. In particular, the Scenario Testing section has an example of how to build scenarios using Data Banks. That example uses an XML Data Bank but the same principles apply to the JSON Bank.