Rest API - Multipart request and response

kalaivanikalaivani Posts: 2

I have rest API which returns response as multipart. So i couldn't use json assertor or diff to validate my response. is there anyother way to validate the response

Is there any guide for referring multipart request and responses?



  • jakubiakjakubiak Posts: 696 admin

    You could use a Text Data Bank to extract the body of the part that you want to validate. You could then set up a JSON Assertor (assuming the content is in JSON format) that uses the extracted value as input to the assertor.

  • kalaivanikalaivani Posts: 2

    Thanks for your reply. i have tried that option earlier. But it dint store any content on that. I am getting empty response there

  • jakubiakjakubiak Posts: 696 admin

    It sounds like the text boundaries that you are using in the Text Data Bank are not finding the right content. Do the MIME boundaries in your message change every time? If so, that might be why.

Sign In or Register to comment.