Submit and vote on feature ideas.

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.

Responders

reactancexl
reactancexl Posts: 160

If I have two endpoints that are the same , First endpoint I do a "get". the second one I do a "post". The data returned is different for the two. How do I do this using one proxy? I am thinking of using a responder that filters off of a URL url/get or url/post. What do I put in the request of the reponder that whichever payload returned based off of filter? thx

Comments

  • keegan_chan
    keegan_chan Posts: 59 ✭✭

    You can add two responders to the same pva file, and use the Responder correlation on HTTP methods to specify which responder would respond to which method.

  • reactancexl
    reactancexl Posts: 160

    But what do I put in the "Response" tab? I want to return the data from the API? For now the responder is a straight passthru. thx

  • keegan_chan
    keegan_chan Posts: 59 ✭✭

    You can use the Message Forward tool to forward the request to the endpoint. Please see the help documentation for details.