|
|
|
@ -15,10 +15,7 @@ namespace Squidex.Areas.Api.Controllers.Ping |
|
|
|
/// <summary>
|
|
|
|
/// Makes a ping request.
|
|
|
|
/// </summary>
|
|
|
|
[ApiAuthorize] |
|
|
|
[ApiExceptionFilter] |
|
|
|
[AppApi] |
|
|
|
[MustBeAppReader] |
|
|
|
[SwaggerTag(nameof(Ping))] |
|
|
|
public sealed class PingController : ApiController |
|
|
|
{ |
|
|
|
@ -27,6 +24,22 @@ namespace Squidex.Areas.Api.Controllers.Ping |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get ping status of the API.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>
|
|
|
|
/// 204 => Service ping successful.
|
|
|
|
/// </returns>
|
|
|
|
/// <remarks>
|
|
|
|
/// Can be used to test, if the Squidex API is alive and responding.
|
|
|
|
/// </remarks>
|
|
|
|
[HttpGet] |
|
|
|
[Route("ping/")] |
|
|
|
public IActionResult GetPing() |
|
|
|
{ |
|
|
|
return NoContent(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get ping status.
|
|
|
|
/// </summary>
|
|
|
|
@ -37,9 +50,12 @@ namespace Squidex.Areas.Api.Controllers.Ping |
|
|
|
/// <remarks>
|
|
|
|
/// Can be used to test, if the Squidex API is alive and responding.
|
|
|
|
/// </remarks>
|
|
|
|
[ApiAuthorize] |
|
|
|
[ApiCosts(0)] |
|
|
|
[AppApi] |
|
|
|
[MustBeAppReader] |
|
|
|
[HttpGet] |
|
|
|
[Route("ping/{app}/")] |
|
|
|
[ApiCosts(0)] |
|
|
|
public IActionResult GetPing(string app) |
|
|
|
{ |
|
|
|
return NoContent(); |
|
|
|
|