MCPcopy
hub / github.com/ormar-orm/ormar / get_items

Function get_items

docs_src/fastapi/docs001.py:29–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28@app.get("/items/", response_model=list[Item])
29async def get_items():
30 items = await Item.objects.select_related("category").all()
31 return items
32
33
34@app.post("/items/", response_model=Item)

Callers

nothing calls this directly

Calls 2

allMethod · 0.45
select_relatedMethod · 0.45

Tested by

no test coverage detected