mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
How to save the mapping as a json file when using admin api ? #506
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 @bhargavjulaganti on GitHub (Apr 10, 2023).
I am usibg this example project for running wiremock
When we use this POST admin endpoint (__admin/mappings) , I don't see the mapping not saved anywhere in the local disk. Is there a way we can enable to save the json file
@StefH commented on GitHub (Apr 10, 2023):
When you post new mappings to
__admin/mappingsvia the admin endpoint, these new / updated mappings are only saved in memory.If you want to save these to disk, do post to
__admin/mappings/save.Save all persistent stub mappings to the disk. (by default this is \bin{x}_admin\mappings. Where {x} is the platform + build configuration)