mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
Question : Do we have provision to read the Response data from a file? #86
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @raghavendrabankapur on GitHub (Apr 2, 2018).
@StefH We have a huge data that need to be responded with and also this is been used by other mocks. Can we respond to a matching request with a file content?
@StefH commented on GitHub (Apr 5, 2018):
Hello @raghavendrabankapur
This is not yet described in the Wiki (maybe I need to restructure the wiki), but you can use
BodyAsFilein the JSON mappingor
in C# code:
@raghavendrabankapur commented on GitHub (Apr 5, 2018):
@StefH in that case, the file name should be the full path of the file , or file should be placed somewhere the similar way of __admin/mappings.
@StefH commented on GitHub (Apr 5, 2018):
As of now, you need to provide the full path. Maybe it's a good idea that the code can support both.
@StefH commented on GitHub (Sep 11, 2018):
Also this linked issue could help you ?
https://github.com/WireMock-Net/WireMock.Net/issues/173
Closing this issue for now. If you still have question, please reopen or create a new issue.