Add a new stub mapping

This commit is contained in:
Stef Heyenrath
2017-01-27 21:19:30 +01:00
parent a334974bef
commit 1f33e6a671
28 changed files with 576 additions and 264 deletions

View File

@@ -13,7 +13,7 @@ namespace WireMock.Admin.Mappings
/// <value>
/// The unique identifier.
/// </value>
public Guid Guid { get; set; }
public Guid? Guid { get; set; }
/// <summary>
/// Gets or sets the request.

View File

@@ -20,5 +20,13 @@
/// The pattern.
/// </value>
public string Pattern { get; set; }
/// <summary>
/// Gets or sets the ignore case.
/// </summary>
/// <value>
/// The ignore case.
/// </value>
public bool? IgnoreCase { get; set; }
}
}

View File

@@ -8,12 +8,12 @@ namespace WireMock.Admin.Mappings
public class RequestModel
{
/// <summary>
/// Gets or sets the URL.
/// Gets or sets the URL. (Can be a string or a UrlModel)
/// </summary>
/// <value>
/// The URL.
/// </value>
public UrlModel Url { get; set; }
public object Url { get; set; }
/// <summary>
/// The methods

View File

@@ -13,7 +13,7 @@ namespace WireMock.Admin.Mappings
/// <value>
/// The HTTP status.
/// </value>
public int StatusCode { get; set; }
public int? StatusCode { get; set; }
/// <summary>
/// Gets or sets the body.
@@ -23,6 +23,30 @@ namespace WireMock.Admin.Mappings
/// </value>
public string Body { get; set; }
/// <summary>
/// Gets or sets the body.
/// </summary>
/// <value>
/// The body.
/// </value>
public string BodyAsBase64 { get; set; }
/// <summary>
/// Gets or sets the body (as JSON object).
/// </summary>
/// <value>
/// The body.
/// </value>
public object BodyAsJson { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [use transformer].
/// </summary>
/// <value>
/// <c>true</c> if [use transformer]; otherwise, <c>false</c>.
/// </value>
public bool UseTransformer { get; set; }
/// <summary>
/// Gets or sets the headers.
/// </summary>

View File

@@ -13,6 +13,6 @@ namespace WireMock.Admin.Mappings
/// <value>
/// The matchers.
/// </value>
public IList<MatcherModel> Matchers { get; set; }
public MatcherModel[] Matchers { get; set; }
}
}