(
session: SessionDep,
offset: int = 0,
limit: Annotated[int, Query(le=100)] = 100,
)
| 47 | |
| 48 | @app.get("/heroes/") |
| 49 | def read_heroes( |
| 50 | session: SessionDep, |
| 51 | offset: int = 0, |
| 52 | limit: Annotated[int, Query(le=100)] = 100, |
| 53 | ) -> list[Hero]: |
| 54 | heroes = session.exec(select(Hero).offset(offset).limit(limit)).all() |
| 55 | return heroes |
| 56 | |
| 57 | |
| 58 | @app.get("/heroes/{hero_id}") |
nothing calls this directly
no test coverage detected
searching dependent graphs…