mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-26 19:31:48 +01:00
Add "/__admin/health" endpoint (#1112)
This commit is contained in:
@@ -24,12 +24,24 @@ public interface IWireMockAdminApi
|
||||
[Header("Authorization")]
|
||||
AuthenticationHeaderValue Authorization { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Get health status.
|
||||
/// </summary>
|
||||
/// <param name="cancellationToken">The optional cancellationToken.</param>
|
||||
/// <returns>
|
||||
/// Returns HttpStatusCode <c>200</c> with a value <c>Healthy</c> to indicate that WireMock.Net is healthy.
|
||||
/// Else it returns HttpStatusCode <c>404</c>.
|
||||
/// </returns>
|
||||
[Get("health")]
|
||||
[AllowAnyStatusCode]
|
||||
Task<string> GetHealthAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// Get the settings.
|
||||
/// </summary>
|
||||
/// <returns>SettingsModel</returns>
|
||||
[Get("settings")]
|
||||
Task<SettingsModel> GetSettingsAsync();
|
||||
Task<SettingsModel> GetSettingsAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// Update the settings.
|
||||
|
||||
Reference in New Issue
Block a user