Skip to content

Commit 7fe2c8a

Browse files
authored
Update REST Admin interface to support "Get Mapping(s) as C# Code" (#878)
* Add /__admin/mappings/code endpoint * api * fix * . * fix * . * . * .
1 parent 0fc664b commit 7fe2c8a

File tree

45 files changed

+934
-482
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+934
-482
lines changed

examples/WireMock.Net.Console.Net452.Classic/MainApp.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,19 @@ public static void Run()
106106
//server.SetAzureADAuthentication("6c2a4722-f3b9-4970-b8fc-fac41e29stef", "8587fde1-7824-42c7-8592-faf92b04stef");
107107

108108
// server.AllowPartialMapping();
109+
server
110+
.Given(Request.Create()
111+
.UsingMethod("GET")
112+
.WithPath("/foo1")
113+
.WithParam("p1", "xyz")
114+
)
115+
.WithGuid("90356dba-b36c-469a-a17e-669cd84f1f05")
116+
.RespondWith(Response.Create()
117+
.WithBody("Hello World")
118+
);
109119

110120
server.Given(Request.Create().WithPath(MatchOperator.Or, "/mypath", "/mypath1", "/mypath2").UsingPost())
121+
.WithGuid("86984b0e-2516-4935-a2ef-b45bf4820d7d")
111122
.RespondWith(Response.Create()
112123
.WithHeader("Content-Type", "application/json")
113124
.WithBodyAsJson("{{JsonPath.SelectToken request.body \"..name\"}}")
@@ -380,7 +391,7 @@ public static void Run()
380391
// http://localhost:9091/trans?start=1000&stop=1&stop=2
381392
server
382393
.Given(Request.Create().WithPath("/trans").UsingGet())
383-
.WithGuid("90356dba-b36c-469a-a17e-669cd84f1f05")
394+
.WithGuid("90356dba-b36c-469a-a17e-669cd84f1f06")
384395
.RespondWith(Response.Create()
385396
.WithStatusCode(200)
386397
.WithHeader("Content-Type", "application/json")

src/WireMock.Net.Abstractions/IRequestMessage.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ public interface IRequestMessage
7878
/// </summary>
7979
IDictionary<string, WireMockList<string>>? Query { get; }
8080

81+
/// <summary>
82+
/// Gets the query.
83+
/// </summary>
84+
IDictionary<string, WireMockList<string>>? QueryIgnoreCase { get; }
85+
8186
/// <summary>
8287
/// Gets the raw query.
8388
/// </summary>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy