diff --git a/BTCPayServer.Client/BTCPayServerClient.Health.cs b/BTCPayServer.Client/BTCPayServerClient.Health.cs index 3acbb036d..2a9c70833 100644 --- a/BTCPayServer.Client/BTCPayServerClient.Health.cs +++ b/BTCPayServer.Client/BTCPayServerClient.Health.cs @@ -9,7 +9,7 @@ namespace BTCPayServer.Client { public virtual async Task GetHealth(CancellationToken token = default) { - var response = await _httpClient.SendAsync(CreateHttpRequest("api/v1/health", bodyPayload: new {}), token); + var response = await _httpClient.SendAsync(CreateHttpRequest("api/v1/health"), token); return await HandleResponse(response); } } diff --git a/BTCPayServer/Controllers/GreenField/HealthController.cs b/BTCPayServer/Controllers/GreenField/HealthController.cs index 1080d9316..618880844 100644 --- a/BTCPayServer/Controllers/GreenField/HealthController.cs +++ b/BTCPayServer/Controllers/GreenField/HealthController.cs @@ -12,7 +12,10 @@ namespace BTCPayServer.Controllers.GreenField [HttpGet("~/api/v1/health")] public ActionResult GetHealth(NBXplorerDashboard dashBoard) { - ApiHealthData model = new ApiHealthData() {Synchronized = dashBoard.IsFullySynched()}; + ApiHealthData model = new ApiHealthData() + { + Synchronized = dashBoard.IsFullySynched() + }; return Ok(model); } } diff --git a/BTCPayServer/wwwroot/swagger/v1/swagger.template.health.json b/BTCPayServer/wwwroot/swagger/v1/swagger.template.health.json index c310325f3..beaa5be9c 100644 --- a/BTCPayServer/wwwroot/swagger/v1/swagger.template.health.json +++ b/BTCPayServer/wwwroot/swagger/v1/swagger.template.health.json @@ -32,7 +32,7 @@ "properties": { "synchronized": { "type": "boolean", - "description": "True if the instance is fully synchronized" + "description": "True if the instance is fully synchronized, according to NBXplorer" } } }