rock25
4 hours agoNew Contributor
How can we get multiple request and response using upload from files option
Hi, thanks for reading! Actually, I want to create a virtual service for REST APIs. I have recorded some REST services, and now I need to modify the response based on the incoming request using conditional matching (a dispatch strategy).
In the ReadyAPI documentation, they provide an option to upload files containing requests and responses that automatically map them, but they haven't mentioned the format of the content inside the file. After multiple trials, I was able to get the body.
File content is below:
testdata-req.txt
POST /v1/api/test/response HTTP/1.1
{
"nationalId": "1234510011",
"transId": "123",
"random": "223"
}
Help me :
What is the format of the file content that gets proper body and header value also maps request and response.
Also If you can suggest any better method please let me know
Thanks for your valuable time.