diff --git a/src/WireMock.Net.Abstractions/Server/IWireMockServer.cs b/src/WireMock.Net.Abstractions/Server/IWireMockServer.cs index 7848b3df..b7f3a480 100644 --- a/src/WireMock.Net.Abstractions/Server/IWireMockServer.cs +++ b/src/WireMock.Net.Abstractions/Server/IWireMockServer.cs @@ -51,7 +51,11 @@ namespace WireMock.Server event NotifyCollectionChangedEventHandler LogEntriesChanged; /// - /// Adds the catch all mapping. + /// Adds a 'catch all mapping' + /// + /// - matches all Paths and any Methods + /// - priority is set to 1000 + /// - responds with a 404 "No matching mapping found" /// void AddCatchAllMapping(); @@ -83,13 +87,18 @@ namespace WireMock.Server //IRespondWithAProvider Given(IRequestMatcher requestMatcher, bool saveToFile = false); /// - /// Reads a static mapping file and adds or updates the mapping. + /// Reads a static mapping file and adds or updates a single mapping. + /// + /// Calling this method manually forces WireMock.Net to read and apply the specified static mapping file. /// - /// The path. + /// The path to the static mapping file. bool ReadStaticMappingAndAddOrUpdate([NotNull] string path); /// /// Reads the static mappings from a folder. + /// (This method is also used when WireMockServerSettings.ReadStaticMappings is set to true. + /// + /// Calling this method manually forces WireMock.Net to read and apply all static mapping files in the specified folder. /// /// The optional folder. If not defined, use {CurrentFolder}/__admin/mappings void ReadStaticMappings([CanBeNull] string folder = null); @@ -157,12 +166,16 @@ namespace WireMock.Server /// /// Register the mappings (via ). + /// + /// This can be used if you have 1 or more defined and want to register these in WireMock.Net directly instead of using the fluent syntax. /// /// The MappingModels IWireMockServer WithMapping(params MappingModel[] mappings); /// /// Register the mappings (via json string). + /// + /// This can be used if you the mappings as json string defined and want to register these in WireMock.Net directly instead of using the fluent syntax. /// /// The mapping(s) as json string. IWireMockServer WithMapping(string mappings);