StatusController
Namespace: Commissiestrijd.Controllers
Assembly: backend.dll
Controller for handling status operations. This controller allows users to check the status of the application. It provides a simple endpoint to verify if the application is online.
[ApiController]
[Route("[controller]")]
public class StatusController : Controller, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable
Inheritance
object
← ControllerBase
← Controller
← StatusController
Implements
IActionFilter
,
IAsyncActionFilter
,
IFilterMetadata
,
IDisposable
Show Inherited Members (204)
Methods
Status()
Checks the status of the application. This method provides a simple endpoint to verify if the application is online. It returns a 200 OK response with the message "online" if the application is running. If the application is not running, it will return an appropriate error response.
[HttpGet]
[SwaggerOperation(null, null, Summary = "Status", Description = "This endpoint checks if the application is online.")]
[SwaggerResponse(200, "Returns the status message 'online'.", null)]
[ProducesResponseType(typeof(string), 200)]
[SwaggerResponse(500, "If the application is not running, a 500 Internal Server Error response is returned.", null)]
public IActionResult Status()
Returns
Type | Description |
---|---|
IActionResult | An IActionResult containing the status message. |