{
"name": "IronMan",
"phone_number": "555555555",
"number_of_guest": 10,
"tables": [
2
],
"reservation_start_at": "2020-10-15T10:00:00.861873Z",
"reservation_end": "2020-10-15T11:00:00.861873Z"
}
I am stuck at step where I need to generate future date and time with time zone to send a postman request. The request is about a reservation feature.
On the request body,a key-value is,
"reservation_start_at": "2020-10-15T10:00:00.861873Z"
My question is, how do I generate future date and time for each request?
Thanks in advance .
You can use the following in postman's pre-request script:
It will set the environment variables
reservation_start_at
andreservation_end
, which you then can access in the request body: