ping-error
ping-error
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace UnitedLex.Integration.Adapters.Salesforce.Controllers.V1
{
/// <summary>
/// The Ping GET method is a proof of life method to show that the API is
running
/// </summary>
[AllowAnonymous]
[ApiVersion("1")]
[Route("v{version:apiVersion}/[controller]")]
[ApiController]
[Produces("application/json")]
public class PingController : ControllerBase
{
[HttpGet]
public static string Get()
{
return pingControllerV1;
}
}
}
namespace UnitedLex.Integration.Adapters.Salesforce.Controllers.V2
{
/// <summary>
/// The Ping GET method is a proof of life method to show that the API is
running
/// </summary>
[AllowAnonymous]
[ApiVersion("2")]
[Route("v{version:apiVersion}/[controller]")]
[ApiController]
[Produces("application/json")]
public class PingController : ControllerBase
{
private const string pingControllerV2 = "Ping... The CRM Adapter v2.0 is up
and running.";
[HttpGet]
public static string Get()
{
return pingControllerV2;
}
}
}