Class EchoController
- Namespace
- GastroSky.Controllers.V1
- Assembly
- GastroSky.dll
Echo endpoints that relay the requesting client's connection details. Useful for testing and debugging.
[ApiController]
[AllowAnonymous]
[Route("api/v1/echo")]
[Produces("application/json", new string[] { })]
public class EchoController : GastroSkyControllerBase
- Inheritance
-
EchoController
- Inherited Members
Constructors
EchoController(GastroSkyDatabaseContext)
Echo endpoints that relay the requesting client's connection details. Useful for testing and debugging.
public EchoController(GastroSkyDatabaseContext db)
Parameters
Methods
Echo()
Debug echo endpoint that will relay information about the requesting entity's connection, such as originating IP address, port number, request headers, etc...
[HttpGet]
[HttpPut]
[HttpPost]
[HttpPatch]
[HttpDelete]
[HttpOptions]
[AllowAnonymous]
[Route("")]
[ProducesResponseType<EchoResponseDto>(200)]
public Task<IActionResult> Echo()
Returns
GetIPv4()
Debug echo endpoint that will relay the requesting user's IPv4 address.
[HttpGet]
[AllowAnonymous]
[Route("ipv4")]
[ProducesResponseType(200)]
public Task<IActionResult> GetIPv4()
Returns
GetIPv6()
Debug echo endpoint that will relay the requesting user's IPv6 address.
[HttpGet]
[AllowAnonymous]
[Route("ipv6")]
[ProducesResponseType(200)]
public Task<IActionResult> GetIPv6()
Returns
GetPort()
Debug echo endpoint that will relay the requesting user's originating outbound port number.
[HttpGet]
[AllowAnonymous]
[Route("port")]
[ProducesResponseType(200)]
public Task<IActionResult> GetPort()
Returns
GetServerDatabaseSchemaVersionNumber()
[HttpGet]
[AllowAnonymous]
[Route("version/db")]
public Task<IActionResult> GetServerDatabaseSchemaVersionNumber()
Returns
GetServerVersionNumber()
[HttpGet]
[AllowAnonymous]
[Route("version")]
public IActionResult GetServerVersionNumber()