MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / view

Method view

src/app/user/controller/user_controller.py:34–36  ·  view source on GitHub ↗
(self, user_id: int, req: Request)

Source from the content-addressed store, hash-verified

32 return await self.response(data=users, include=req.include)
33
34 async def view(self, user_id: int, req: Request) -> JsonApiResponse:
35 user = await self.container.user_service().get_by_id(user_id)
36 return await self.response(data=user, include=req.query_params.get("include", None))
37
38 async def create(
39 self,

Callers

nothing calls this directly

Calls 2

get_by_idMethod · 0.45
responseMethod · 0.45

Tested by

no test coverage detected