Hi All, Is there any possibility to feed n numbe...
# general
p
Hi All, Is there any possibility to feed n number of data from another doc to a json response? For eg: for example, a particular response will be running in loop for n number of times and each time one of the attribute will be picking up a data randomly from a different document. a json response is something like { ------ --- "replay": "this data should pick from another json or csv file" --- } is this possible?
r
response templating can be used to generate random values, but i dont believe there's any way to pull the values from a file using out-of-the-box wiremock. this could be achieved via a custom handlebars helper extension tho
p
yeah random can be done, that's right. can pick random from specified one as well but those have to be mentioned in the same file. But in case the specified values are too big accommodating in the same json file will be a challenge, so was looking if can be stored in some file and can be called
r
i understand. i think a custom extension is your best bet
p
ok..thank you!!