diff --git a/examples/WireMock.Net.Console.NET5/__admin/mappings/11111110-a633-40e8-a244-5cb80bc0ab66.json b/examples/WireMock.Net.Console.NET5/__admin/mappings/11111110-a633-40e8-a244-5cb80bc0ab66.json
index 9c761369..99738c88 100644
--- a/examples/WireMock.Net.Console.NET5/__admin/mappings/11111110-a633-40e8-a244-5cb80bc0ab66.json
+++ b/examples/WireMock.Net.Console.NET5/__admin/mappings/11111110-a633-40e8-a244-5cb80bc0ab66.json
@@ -1,22 +1,33 @@
-{
+{
"Request": {
"Path": {
"Matchers": [
{
"Name": "WildcardMatcher",
- "Pattern": "/static/mapping"
+ "Patterns": [ "/static/mapping", "/static/mapping2" ]
}
]
},
+ "Body": {
+ "Matcher": {
+ "Name": "JsonMatcher",
+ "Pattern": {
+ "post1": "value 1",
+ "post2": "value 2"
+ },
+ "IgnoreCase": true
+ }
+ },
"Methods": [
- "get"
+ "get",
+ "post"
]
},
"Response": {
"BodyAsJson": { "body": "static mapping" },
- "Headers": {
- "Content-Type": "application/json",
- "Test-X": [ "test 1", "test 2" ]
- }
+ "Headers": {
+ "Content-Type": "application/json",
+ "Test-X": [ "test 1", "test 2" ]
+ }
}
}
\ No newline at end of file
diff --git a/src/WireMock.Net/RequestBuilders/IBodyRequestBuilder.cs b/src/WireMock.Net/RequestBuilders/IBodyRequestBuilder.cs
index f4e768a1..29cb632c 100644
--- a/src/WireMock.Net/RequestBuilders/IBodyRequestBuilder.cs
+++ b/src/WireMock.Net/RequestBuilders/IBodyRequestBuilder.cs
@@ -1,80 +1,80 @@
-using JetBrains.Annotations;
-using System;
-using WireMock.Matchers;
-using WireMock.Matchers.Request;
+using JetBrains.Annotations;
+using System;
+using WireMock.Matchers;
+using WireMock.Matchers.Request;
using WireMock.Util;
-namespace WireMock.RequestBuilders
-{
- ///
- /// The BodyRequestBuilder interface.
- ///
- public interface IBodyRequestBuilder : IRequestMatcher
- {
- ///
- /// WithBody: IMatcher
- ///
- /// The matcher.
- /// The .
- IRequestBuilder WithBody([NotNull] IMatcher matcher);
-
- ///
- /// WithBody: IMatcher[]
- ///
- /// The matchers.
- /// The .
- IRequestBuilder WithBody([NotNull] IMatcher[] matchers);
-
- ///
- /// WithBody: Body as string
- ///
- /// The body.
- /// The match behaviour.
- /// The .
- IRequestBuilder WithBody(string body, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
-
- ///
- /// WithBody: Body as byte[]
- ///
- /// The body.
- /// The match behaviour.
- /// The .
- IRequestBuilder WithBody(byte[] body, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
-
- ///
- /// WithBody: Body as object
- ///
- /// The body.
- /// The match behaviour.
- /// The .
- IRequestBuilder WithBody(object body, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
-
- ///
- /// WithBody: func (string)
- ///
- /// The function.
- /// The .
- IRequestBuilder WithBody([NotNull] Func func);
-
- ///
- /// WithBody: func (byte[])
- ///
- /// The function.
- /// The .
- IRequestBuilder WithBody([NotNull] Func func);
-
- ///
- /// WithBody: func (json object)
- ///
- /// The function.
- /// The .
- IRequestBuilder WithBody([NotNull] Func