async def debug(request: Request, user: User = Depends(get_current_user)):
    """
    Authenticated function that returns a few pieces of debug
     * Environ of the service process
     * Request headers
     * User model
    """
    return {
        "env": dict(os.environ),
        "headers": dict(request.headers),
        "user": user,
    }
Authenticated function that returns a few pieces of debug
* Environ of the service process
* Request headers
* User model
examples/service-fastapi/app/service.py