GET
/api/v3/
This endpoint provides informational data about the application, including its name and the official creator's repository link. It is primarily intended for administrators and external services to access basic metadata about the application. This endpoint does not function as a health check or heartbeat mechanism for monitoring tools like Uptime Kuma or others.
- No request headers required.
No special headers are needed for the request.
- Request limit: 1000 requests per hour (enforced by
@limiter.limit('1000 per hour')
).
- No input data required.
The request body should be empty.
-
HTTP 200 - OK: If the request is successful, it will return the current backend version.
Example Response:
{ "application_name": "Ask @lvkaszus! - Backend", "repository_url": "https://github.com/lvkaszus/asklvkaszus-react" }
-
HTTP 500 - Internal Server Error: If an server error occurs while processing the request, it will return an error message with a 500 status code.
Example Response:
{ "error": "Internal Server Error!" }
- The endpoint provides basic metadata about the application, including its name and the official repository link.
- No input data is required for the request, and no special headers are needed.
- Upon a valid request, the endpoint will return the application's name and the official repository URL.
- If there is an issue processing the request, such as a server error, a 500 error response will be returned with an appropriate error message.
GET
/api/v3/fetch_backend_version
This endpoint is used to fetch the currenly running version of the application backend.
- Authorization: Requires an API key (api_key) for authorization (
Authorization: Ask-lvkaszus-API-Key: xxxxxxxxxx
) This is enforced by the@require_api_key
decorator.
- Request limit: 50 requests per hour (enforced by
@limiter.limit('50 per hour')
).
- No input data required.
The request body should be empty.
-
HTTP 200 - OK: If the request is successful, it will return the current backend version.
Example Response:
{ "backend_version": "3.0.0" }
-
HTTP 500 - Internal Server Error: If an server error occurs while processing the request, it will return an error message with a 500 status code.
Example Response:
{ "error": "An error occurred while fetching currently running backend version! Try again later." }
- The endpoint is secured using the
@require_api_key
decorator, meaning every request must include a valid API key. - Upon a valid request, the
fetch_backend_version()
function will return the backend version stored in thebackend_version
variable. - If an error occurs, such as an issue accessing the
backend_version
variable, a 500 error response will be returned with an appropriate error message.