WireMock.Net-docker
WireMock.Net-docker copied to clipboard
How do I consume it?
How do I consume it on an Integration test? on Every option there is generally a Start() for the server, but since is already app, how do you configure mappings?
This docker image starts without any mappings.
In this case you should post the mappings to the admin url.
This is explained here:
- https://app.swaggerhub.com/apis/StefHeyenrath/WireMock/1.0.13.0
- https://github.com/WireMock-Net/WireMock.Net/wiki/Admin-API-Reference#__adminmappings
- https://app.swaggerhub.com/apis/StefHeyenrath/WireMock/1.0.13.0
Passing Mappings on production server via Post request is not feasible. Is there a way to pass static mappings file? I seriously need this.
Hello @sumit1112, this can be done by copying the mapping files in a __admin\mappings folder.
See this link:
https://github.com/WireMock-Net/WireMock.Net/wiki/Mapping