Browse Source

Ping Controller fixed.

pull/329/head
Sebastian Stehle 7 years ago
parent
commit
5632c20216
  1. 24
      src/Squidex/Areas/Api/Controllers/Ping/PingController.cs

24
src/Squidex/Areas/Api/Controllers/Ping/PingController.cs

@ -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();

Loading…
Cancel
Save