Where can mapping configuration be stored (administered via HTTP), so that it survives service restarts? #299

Closed
opened 2025-12-29 08:25:46 +01:00 by adam · 2 comments
Owner

Originally created by @hari-hlubovac-carvana on GitHub (Oct 1, 2020).

Originally created by @hari-hlubovac-carvana on GitHub (Oct 1, 2020).
adam added the question label 2025-12-29 08:25:46 +01:00
adam closed this issue 2025-12-29 08:25:46 +01:00
Author
Owner

@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\mappings folder.

And when you restart the server, these JSON files are picked up again and processed.

@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\mappings` folder. And when you restart the server, these JSON files are picked up again and processed.
Author
Owner

@hari-hlubovac-carvana commented on GitHub (Oct 1, 2020):

Thank you very much.

@hari-hlubovac-carvana commented on GitHub (Oct 1, 2020): Thank you very much.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#299