(
session: SessionDep,
offset: int = 0,
limit: Annotated[int, Query(le=100)] = 100,
)
| 64 | |
| 65 | @app.get("/heroes/", response_model=list[HeroPublic]) |
| 66 | def read_heroes( |
| 67 | session: SessionDep, |
| 68 | offset: int = 0, |
| 69 | limit: Annotated[int, Query(le=100)] = 100, |
| 70 | ): |
| 71 | heroes = session.exec(select(Hero).offset(offset).limit(limit)).all() |
| 72 | return heroes |
| 73 | |
| 74 | |
| 75 | @app.get("/heroes/{hero_id}", response_model=HeroPublic) |
nothing calls this directly
no test coverage detected
searching dependent graphs…