(
request: Request,
path_params: Dict = Depends(path_params_required),
auth_info: Dict = Depends(auth_info_required),
)
| 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", |
nothing calls this directly
no test coverage detected