FastAPI - Dependency Injection
Given this code snippet, what will be printed when a request is made to
/users/5?
from fastapi import FastAPI, Depends
app = FastAPI(dependencies=[Depends(lambda: print('Global dep called'))])
@app.get('/users/{user_id}')
async def read_user(user_id: int):
return {'user_id': user_id}