Function
read_heroes
(
session: Session = Depends(get_session),
offset: int = 0,
limit: int = Query(default=100, le=100),
)
Source from the content-addressed store, hash-verified
| 61 | |
| 62 | @app.get("/heroes/", response_model=list[HeroPublic]) |
| 63 | def read_heroes( |
| 64 | session: Session = Depends(get_session), |
| 65 | offset: int = 0, |
| 66 | limit: int = Query(default=100, le=100), |
| 67 | ): |
| 68 | heroes = session.exec(select(Hero).offset(offset).limit(limit)).all() |
| 69 | return heroes |
| 70 | |
| 71 | |
| 72 | @app.get("/heroes/{hero_id}", response_model=HeroPublic) |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…