MCPcopy
hub / github.com/TaskingAI/TaskingAI / api_get

Function api_get

backend/app/routes/auto/record.py:34–48  ·  view source on GitHub ↗
(
        request: Request,
        path_params: Dict = Depends(path_params_required),
        auth_info: Dict = Depends(auth_info_required),
    )

Source from the content-addressed store, hash-verified

32 responses={422: {"description": "Unprocessable Entity"}},
33 )
34 async def api_get(
35 request: Request,
36 path_params: Dict = Depends(path_params_required),
37 auth_info: Dict = Depends(auth_info_required),
38 ):
39 check_path_params(
40 model_operator=ops,
41 object_id_required=True,
42 path_params=path_params,
43 )
44
45 entity = await ops.get(**path_params)
46 return RecordGetResponse(
47 data=entity.to_response_dict(),
48 )
49
50 @router.get(
51 path="/collections/{collection_id}/records",

Callers

nothing calls this directly

Calls 4

check_path_paramsFunction · 0.85
RecordGetResponseClass · 0.85
getMethod · 0.45
to_response_dictMethod · 0.45

Tested by

no test coverage detected