Hi,
Can someone help me on the below scenario?
I have a REST API, which which generates account number for new users and have another API, which uses the generated account number to fetch the details of the account. How can we virtualize this scenario as realistic as possible, by using an excel or csv to store the generated account number for API-1 and fetch from the same file when the API-2 is called.
Example. API-1Request:POST /api/v1/customer/entry
{
"firstName" : "John",
"lastName" : "Mathews"
}
Response:{
"accountNumber" : 2020-1234567890,
"msg" : "Account Created Successfully"
}
API-2Request:
POST /api/v1/customer/fetch
{
"accountNumber" : 2020-1234567890
}
Response:
{
"firstName" : "John",
"lastName" : "Mathews",
"accountNumber" : 2020-1234567890
}
Thanks
Senthil Manohar