You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
]
}
The text was updated successfully, but these errors were encountered:
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
something like:
The text was updated successfully, but these errors were encountered: