mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Question about couple server methods. #315
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 @tomatualus on GitHub (Nov 23, 2020).
Hey. I would love to know what do some of the
WireMockServermethods do. Also would be nice to add this info to the wiki. :)AddCatchAllMapping
ReadStaticMappings - Does this force the server to read all the mappings? When does the server read the mappings otherwise, if not called?
ReadStaticMappingAndAddOrUpdate - Add or update what? Mappings?
WithMapping (string mappings overload) - JObject serialized or what is this supposed to be?
WithMapping (params MappingModel[] mapings overload) - I guess i can register new mappings with this?
Thanks in advance, really love your work.
@StefH commented on GitHub (Nov 24, 2020):
Hello @tomatualus
I did add some more comments in https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net.Abstractions/Server/IWireMockServer.cs
Please take a look.
@tomatualus commented on GitHub (Nov 24, 2020):
Thanks for the reply, @StefH !
All of the things got a lot clearer now. Is AddCatchAllMapping called by default? Because that's the thing i always see, but don't remember every calling .AddCatchAllMapping.
@StefH commented on GitHub (Nov 24, 2020):
The
AddCatchAllMappingis a method which you can use (however actually I forgot why I added this method)The 404 you see, is created in a different part --> that's the default error when a mapping is not found.