mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Where can mapping configuration be stored (administered via HTTP), so that it survives service restarts? #298
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 @hari-hlubovac-carvana on GitHub (Oct 1, 2020).
@StefH commented on GitHub (Oct 1, 2020):
Hello @hari-hlubovac-carvana,
With a POST to
http://{{wiremock-hostname:port}}/__admin/mappings/save, you can save the current mappings to a file. (See https://github.com/WireMock-Net/WireMock.Net/wiki/Admin-API-Reference#__adminmappings)The JSON mapping files are stored in the
_admin\mappingsfolder.And when you restart the server, these JSON files are picked up again and processed.
@hari-hlubovac-carvana commented on GitHub (Oct 1, 2020):
Thank you very much.