Hi there,
I am trying to implement the Find and Reserve feature using TDM API's using Javelin. In my case, as part of Find API, I am fetching number of records (say 10). If I want to have these records Reserved, then I would have to have the below highlighted part repeated 10 times with relevant records. How can I get this request content built dynamically depending on the number of records to be reserved using Javelin.
Also, how can I store these 10 records as part of Find API response, so that these can be retrieved to build the Reserve API request. I tried putting it into the text file, but then I am facing difficulty in fetching the values to be used for Reserve for each record set. Appreciate any suggestion on this regard.
{
"dataModelId": 3722,
"environmentId": 3384,
"resErrorMessage": "string",
"reservationId": 0,
"reservationName": "Sample Reservation",
"reservationState": "UNDEFINED",
"resources": [
{
"dataModelId": 3722,
"modelKeys": {
"ID": "5050000026",
"name": "John"
}
}
]
}