Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Can an entire object from a REST API response be used in the next REST API?

How can this be done? via data bank or script or.....?

Tagged:

Best Answer

Answers

  • walkaboutsd
    walkaboutsd Posts: 2

    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.

  • amink1
    amink1 Posts: 3

    @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

  • benken_parasoft
    benken_parasoft Posts: 1,307 ✭✭✭

    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.