-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FixMapping[] for WireMock.Org REST API (#1023)
- Loading branch information
Showing
8 changed files
with
371 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
namespace WireMock.Org.Abstractions | ||
namespace WireMock.Org.Abstractions; | ||
|
||
public class GetAdminMappingsResult | ||
{ | ||
public class GetAdminMappingsResult | ||
{ | ||
public Mappings Mappings { get; set; } | ||
public Mapping[] Mappings { get; set; } | ||
|
||
public Meta Meta { get; set; } | ||
} | ||
public Meta Meta { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
namespace WireMock.Org.Abstractions; | ||
|
||
public class Mapping | ||
{ | ||
/// <summary> | ||
/// This stub mapping's unique identifier | ||
/// </summary> | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// Alias for the id | ||
/// </summary> | ||
public string Uuid { get; set; } | ||
|
||
/// <summary> | ||
/// The stub mapping's name | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
public MappingsRequest Request { get; set; } | ||
|
||
public MappingsResponse Response { get; set; } | ||
|
||
/// <summary> | ||
/// Indicates that the stub mapping should be persisted immediately on create/update/delete and survive resets to default. | ||
/// </summary> | ||
public bool Persistent { get; set; } | ||
|
||
/// <summary> | ||
/// This stub mapping's priority relative to others. 1 is highest. | ||
/// </summary> | ||
public int Priority { get; set; } | ||
|
||
/// <summary> | ||
/// The name of the scenario that this stub mapping is part of | ||
/// </summary> | ||
public string ScenarioName { get; set; } | ||
|
||
/// <summary> | ||
/// The required state of the scenario in order for this stub to be matched. | ||
/// </summary> | ||
public string RequiredScenarioState { get; set; } | ||
|
||
/// <summary> | ||
/// The new state for the scenario to be updated to after this stub is served. | ||
/// </summary> | ||
public string NewScenarioState { get; set; } | ||
|
||
/// <summary> | ||
/// A map of the names of post serve action extensions to trigger and their parameters. | ||
/// </summary> | ||
public object PostServeActions { get; set; } | ||
|
||
/// <summary> | ||
/// Arbitrary metadata to be used for e.g. tagging, documentation. Can also be used to find and remove stubs. | ||
/// </summary> | ||
public object Metadata { get; set; } | ||
} |
This file was deleted.
Oops, something went wrong.
11 changes: 5 additions & 6 deletions
11
src/WireMock.Org.Abstractions/PostAdminMappingsFindByMetadataResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
namespace WireMock.Org.Abstractions | ||
namespace WireMock.Org.Abstractions; | ||
|
||
public class PostAdminMappingsFindByMetadataResult | ||
{ | ||
public class PostAdminMappingsFindByMetadataResult | ||
{ | ||
public Mappings Mappings { get; set; } | ||
public Mapping[] Mappings { get; set; } | ||
|
||
public Meta Meta { get; set; } | ||
} | ||
public Meta Meta { get; set; } | ||
} |
11 changes: 5 additions & 6 deletions
11
src/WireMock.Org.Abstractions/PostAdminRecordingsSnapshotResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
namespace WireMock.Org.Abstractions | ||
namespace WireMock.Org.Abstractions; | ||
|
||
public class PostAdminRecordingsSnapshotResult | ||
{ | ||
public class PostAdminRecordingsSnapshotResult | ||
{ | ||
public Mappings Mappings { get; set; } | ||
public Mapping[] Mappings { get; set; } | ||
|
||
public Meta Meta { get; set; } | ||
} | ||
public Meta Meta { get; set; } | ||
} |
11 changes: 5 additions & 6 deletions
11
src/WireMock.Org.Abstractions/PostAdminRecordingsStopResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
namespace WireMock.Org.Abstractions | ||
namespace WireMock.Org.Abstractions; | ||
|
||
public class PostAdminRecordingsStopResult | ||
{ | ||
public class PostAdminRecordingsStopResult | ||
{ | ||
public Mappings Mappings { get; set; } | ||
public Mapping[] Mappings { get; set; } | ||
|
||
public Meta Meta { get; set; } | ||
} | ||
public Meta Meta { get; set; } | ||
} |
Oops, something went wrong.