Skip to content

Main

healthcheck()

Endpoint for health check.

Returns:

Name Type Description
Response

A Response object with status code 200 indicating successful health check.

Source code in src/auth_service/main.py
@app.get("/healthcheck")
def healthcheck():
    """
    Endpoint for health check.

    Returns:
        Response: A Response object with status code 200 indicating successful health check.
    """
    return Response(status_code=200)

root_api()

Root API endpoint.

Returns:

Name Type Description
dict

A dictionary with a message key indicating the auth service.

Source code in src/auth_service/main.py
@app.get("/")
def root_api():
    """
    Root API endpoint.

    Returns:
        dict: A dictionary with a message key indicating the auth service.
    """
    return {"msg": "auth_service"}