Coverage for docs_src / configure_swagger_ui / tutorial003_py310.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.13.3, created at 2026-02-12 18:15 +0000

1from fastapi import FastAPI 1abcd

2 

3app = FastAPI(swagger_ui_parameters={"deepLinking": False}) 1abcd

4 

5 

6@app.get("/users/{username}") 1abcd

7async def read_user(username: str): 1abcd

8 return {"message": f"Hello {username}"} 1efg