Instead of providing the JSON format structure after return, is there a way to point Ambassador to the .json file located in the project of the app we want to test?
instead of
router["/api/v2/users"] = JSONResponse() { _ -> Any in
return [
["id": "01", "name": "john"],
["id": "02", "name": "tom"]
]
}
something like:
router["/api/v2/users"] = JSONResponse() { _ -> Any in
return [
path/to/file/users.json
]
}