Table of Contents

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

db GastroSkyDatabaseContext

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

Task<IActionResult>

IActionResult

GetIPv4()

Debug echo endpoint that will relay the requesting user's IPv4 address.

[HttpGet]
[AllowAnonymous]
[Route("ipv4")]
[ProducesResponseType(200)]
public Task<IActionResult> GetIPv4()

Returns

Task<IActionResult>

IActionResult

GetIPv6()

Debug echo endpoint that will relay the requesting user's IPv6 address.

[HttpGet]
[AllowAnonymous]
[Route("ipv6")]
[ProducesResponseType(200)]
public Task<IActionResult> GetIPv6()

Returns

Task<IActionResult>

IActionResult

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

Task<IActionResult>

IActionResult

GetServerDatabaseSchemaVersionNumber()

[HttpGet]
[AllowAnonymous]
[Route("version/db")]
public Task<IActionResult> GetServerDatabaseSchemaVersionNumber()

Returns

Task<IActionResult>

GetServerVersionNumber()

[HttpGet]
[AllowAnonymous]
[Route("version")]
public IActionResult GetServerVersionNumber()

Returns

IActionResult