WireMock.Net.RestClient 1.23.0

Prefix Reserved
dotnet add package WireMock.Net.RestClient --version 1.23.0
                    
NuGet\Install-Package WireMock.Net.RestClient -Version 1.23.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WireMock.Net.RestClient" Version="1.23.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WireMock.Net.RestClient" Version="1.23.0" />
                    
Directory.Packages.props
<PackageReference Include="WireMock.Net.RestClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WireMock.Net.RestClient --version 1.23.0
                    
#r "nuget: WireMock.Net.RestClient, 1.23.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WireMock.Net.RestClient@1.23.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WireMock.Net.RestClient&version=1.23.0
                    
Install as a Cake Addin
#tool nuget:?package=WireMock.Net.RestClient&version=1.23.0
                    
Install as a Cake Tool

WireMock.Net

Lightweight Http Mocking Server for .NET, inspired by WireMock.org (from the Java landscape).

⭐ Key Features

  • HTTP response stubbing, matchable on URL/Path, headers, cookies and body content patterns
  • Library can be used in unit tests and integration tests
  • Runs as a standalone process, as windows service, as Azure/IIS or as docker
  • Configurable via a fluent C# .NET API, JSON files and JSON over HTTP
  • Record/playback of stubs (proxying)
  • Per-request conditional proxying
  • Stateful behaviour simulation
  • Response templating / transformation using Handlebars and extensions
  • Can be used locally or in CI/CD scenarios
  • Can be used for Aspire Distributed Application testing

⭐ Stubbing

A core feature of WireMock.Net is the ability to return predefined HTTP responses for requests matching criteria. See Stubbing.

⭐ Request Matching

WireMock.Net support advanced request-matching logic, see Request Matching.

⭐ Response Templating

The response which is returned WireMock.Net can be changed using templating. This is described here Response Templating.

⭐ Admin API Reference

The WireMock admin API provides functionality to define the mappings via a http interface see Admin API Reference.

⭐ Using

WireMock.Net can be used in several ways:

UnitTesting

You can use your favorite test framework and use WireMock within your tests, see UnitTesting.

Unit/Integration Testing using Testcontainers.DotNet

See WireMock.Net.Testcontainers on how to build a WireMock.Net Docker container which can be used in Unit/Integration testing.

Unit/Integration Testing using an an Aspire Distributed Application

See WireMock.Net.Aspire on how to use WireMock.Net as an Aspire Hosted application to do Unit/Integration testing.

As a dotnet tool

It's simple to install WireMock.Net as (global) dotnet tool, see dotnet tool.

As standalone process / console application

This is quite straight forward to launch a mock server within a console application, see Standalone Process.

As a Windows Service

You can also run WireMock.Net as a Windows Service, follow this Windows Service.

As a Web Job in Azure or application in IIS

See this link WireMock-as-a-(Azure)-Web-App

In a docker container

There is also a Linux and Windows-Nano container available at hub.docker.com. For more details see also Docker.

HTTPS / SSL

More details on using HTTPS (SSL) can be found here HTTPS

📚 Documentation

For more info, see also this documentation page: What is WireMock.Net.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on WireMock.Net.RestClient:

Package Downloads
WireMock.Net.Testcontainers

A fluent testcontainer builder for the Docker version of WireMock.Net

WireMock.Net.Aspire

Aspire extension to start a WireMock.Net server to stub an api.

GrpcTestKit

Package Description

Fredi.Aspire.Hosting.WireMock

API mocking support for .NET Aspire using WireMock.Net.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.23.0 2,253 1/5/2026
1.22.0 1,177 1/2/2026
1.21.0 2,924 12/25/2025
1.20.0 631 12/24/2025
1.19.0 11,123 12/12/2025
1.18.0 4,409 12/9/2025
1.17.0 4,618 12/7/2025
1.16.0 18,674 11/18/2025
1.15.0 52,305 10/22/2025
1.14.0 27,239 10/6/2025
1.14.0-preview-01 247 10/3/2025
1.13.0 16,378 9/28/2025
1.12.0 65,645 8/30/2025
1.11.2 5,457 8/27/2025
1.11.1 690 8/27/2025
1.11.0 5,953 8/26/2025
1.10.1 2,534 8/22/2025
1.10.0 12,393 8/18/2025
1.9.1 1,366 8/17/2025
1.9.0 10,667 8/10/2025
1.8.18 9,678 8/4/2025
1.8.17 23,271 7/23/2025
1.8.16 7,428 7/19/2025
1.8.15 1,060 7/18/2025
1.8.14 6,801 7/13/2025
1.8.13 71,698 6/23/2025
1.8.13-preview-02 233 6/21/2025
1.8.13-preview-01 247 6/20/2025
1.8.12 20,359 6/15/2025
1.8.11 6,004 6/11/2025
1.8.10 7,928 6/10/2025
1.8.9 27,951 5/28/2025
1.8.8 4,215 5/24/2025
1.8.7 1,253 5/22/2025
1.8.6 12,936 5/15/2025
1.8.5 7,043 5/14/2025
1.8.4 10,053 5/8/2025
1.8.3 7,682 5/6/2025
1.8.2 6,190 5/5/2025
1.8.1 1,431 5/2/2025
1.8.0 10,377 4/29/2025
1.8.0-prview-01 3,393 3/4/2025
1.7.5-preview-02 289 4/3/2025
1.7.5-preview-01 297 4/2/2025
1.7.4 171,130 2/27/2025
1.7.3 2,706 2/24/2025
1.7.2 53,727 2/12/2025
1.7.2-preview-01 187 2/7/2025
1.7.1 46,524 1/27/2025
1.7.0 4,228 1/22/2025
1.6.12 2,910 1/21/2025
1.6.11 18,595 1/2/2025
1.6.10 20,073 12/15/2024
1.6.9 16,721 12/6/2024
1.6.8 47,003 11/24/2024
1.6.7 170,030 10/17/2024
1.6.7-preview-02 277 10/6/2024
1.6.7-preview-01 206 10/2/2024
1.6.6 28,200 10/1/2024
1.6.5 1,348 9/28/2024
1.6.4 7,712 9/25/2024
1.6.3 35,145 9/7/2024
1.6.2 68,586 9/4/2024
1.6.1 6,630 8/22/2024
1.6.0 10,448 8/16/2024
1.5.62 23,872 7/27/2024
1.5.61 262 7/27/2024
1.5.60 77,914 7/9/2024
1.5.59 5,895 6/26/2024
1.5.58 89,689 6/8/2024
1.5.57 4,372 6/4/2024
1.5.56 1,521 6/3/2024
1.5.55 36,757 5/22/2024
1.5.54 2,800 5/18/2024
1.5.53 32,720 5/8/2024
1.5.52 46,636 4/6/2024
1.5.51 48,205 3/20/2024
1.5.50 333 3/20/2024
1.5.49 34,026 3/6/2024
1.5.48 20,576 2/17/2024
1.5.47 33,789 1/25/2024
1.5.46 65,885 12/23/2023
1.5.45 814 12/21/2023
1.5.44 4,065 12/14/2023
1.5.43 1,206 12/11/2023
1.5.42 7,502 12/9/2023
1.5.41 5,325 12/4/2023
1.5.40 28,044 11/7/2023
1.5.39 7,569 10/9/2023
1.5.38 367 10/9/2023
1.5.37 8,143 9/27/2023
1.5.36 1,493 9/21/2023
1.5.35 58,469 8/19/2023
1.5.34 51,304 8/4/2023
1.5.32 175,908 7/15/2023
1.5.31 8,097 7/8/2023
1.5.30 3,226 6/28/2023
1.5.29 32,362 6/22/2023
1.5.28 19,395 6/11/2023
1.5.27 5,600 6/3/2023
1.5.26 11,293 5/25/2023
1.5.25 160,817 5/13/2023
1.5.24 960 5/7/2023
1.5.23 6,248 4/23/2023
1.5.22 7,610 4/8/2023
1.5.21 22,307 3/22/2023
1.5.20 850 3/19/2023
1.5.19 476 3/17/2023
1.5.18 1,712 3/9/2023
1.5.17 2,924 2/25/2023
1.5.16 9,791 2/6/2023
1.5.15 2,091 1/29/2023
1.5.14 4,136 1/24/2023
1.5.13 62,318 12/11/2022
1.5.12 3,179 12/3/2022
1.5.11 5,113 11/24/2022
1.5.10 44,341 11/6/2022
1.5.9 1,653 10/29/2022
1.5.8 4,804 10/16/2022
1.5.7 7,010 10/11/2022
1.5.6 30,595 9/12/2022
1.5.5 1,083 9/3/2022
1.5.4 36,957 8/24/2022
1.5.3 13,337 7/29/2022
1.5.2 1,475 7/24/2022
1.5.1 3,151 7/8/2022
1.5.0 16,601 6/10/2022
1.4.43 15,067 5/21/2022
1.4.42 1,429 5/13/2022
1.4.41 5,564 4/22/2022
1.4.40 21,397 3/26/2022
1.4.39 753 3/25/2022
1.4.38 16,203 3/12/2022
1.4.37 1,199 3/2/2022
1.4.36 1,121 2/25/2022
1.4.35 3,502 2/9/2022
1.4.34 3,103 1/27/2022
1.4.33 2,614 1/24/2022
1.4.32 15,058 1/17/2022
1.4.31 807 1/6/2022
1.4.30 845 12/25/2021
1.4.29 2,772 12/12/2021
1.4.28 7,354 12/1/2021
1.4.27 1,792 11/17/2021
1.4.26 50,028 11/4/2021
1.4.25 1,133 10/27/2021
1.4.24 851 10/20/2021
1.4.23 4,235 9/27/2021
1.4.22 1,188 9/22/2021
1.4.21 1,052 9/16/2021
1.4.21-preview-03 507 9/12/2021
1.4.20 15,803 8/6/2021
1.4.19 814 8/4/2021
1.4.18 12,089 7/10/2021
1.4.17 1,015 7/7/2021
1.4.16 5,446 6/5/2021
1.4.15 4,959 5/19/2021
1.4.14 5,120 5/11/2021
1.4.13 3,369 4/26/2021
1.4.12 693 4/22/2021
1.4.11 734 4/18/2021
1.4.10 635 4/15/2021
1.4.9 2,583 3/31/2021
1.4.8 764 3/24/2021
1.4.7 763 3/21/2021
1.4.6 3,574 2/26/2021
1.4.5 1,599 2/11/2021
1.4.4 752 2/9/2021
1.4.3 1,891 2/5/2021
1.4.2 2,087 1/24/2021
1.4.1 723 1/19/2021
1.4.0 3,522 1/12/2021
1.3.10 6,177 12/23/2020
1.3.9 4,879 12/8/2020
1.3.8 1,542 12/3/2020
1.3.7 6,057 11/17/2020
1.3.6 1,380 11/10/2020
1.3.5 796 11/4/2020
1.3.4 32,885 10/17/2020
1.3.3 793 10/15/2020
1.3.2 845 10/14/2020
1.3.1 2,455 9/30/2020
1.3.0 824 9/29/2020
1.2.18 11,940 8/13/2020
1.2.17 27,708 8/1/2020
1.2.16 1,327 7/27/2020
1.2.15 29,305 7/19/2020
1.2.14 121,385 7/9/2020
1.2.13 821 7/9/2020
1.2.12 12,948 5/23/2020
1.2.11 914 5/18/2020
1.2.10 913 5/17/2020
1.2.9 843 5/14/2020
1.2.8 882 5/4/2020
1.2.7 922 4/30/2020
1.2.6 838 4/29/2020
1.2.5 1,151 4/17/2020
1.2.4 2,317 4/10/2020
1.2.3 1,004 4/1/2020
1.2.2 910 3/25/2020
1.2.1 909 3/17/2020
1.2.0 3,434 3/14/2020
1.1.10 1,478 3/5/2020
1.1.9 920 2/25/2020
1.1.8 1,008 2/22/2020
1.1.7 7,337 2/6/2020
1.1.6 1,499 1/27/2020
1.1.5 934 1/25/2020
1.1.4 976 1/25/2020
1.1.3 872 1/22/2020
1.1.2 1,507 1/9/2020
1.1.1 8,645 1/9/2020
1.1.0 1,085 12/27/2019
1.1.0-preview-01 8,108 8/3/2019
1.0.0 855 7/22/2024

# 1.23.0 (05 January 2026)
- #1414 Pass the parameter matchOperator in Request.WithPath to its inner calls [bug]
- #1416 Fix: Pass AllowedHandlebarsHelpers configuration to Handlebars.Net.Helpers library
- #1413 Parameter `matchOperator` is not respected in the method Request.WithPath [bug]
- #1415 HandlebarsSettings AllowedHandlebarsHelpers Configuration Not Applied [bug]

The full release notes can be found here: https://github.com/wiremock/WireMock.Net/blob/master/CHANGELOG.md