flip_api.file_services.get_model_files_list
Attributes
Functions
|
Get list of files for a specific model. |
Module Contents
- flip_api.file_services.get_model_files_list.router
- flip_api.file_services.get_model_files_list.get_model_files_list(model_id: uuid.UUID, db: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID = Depends(verify_token)) list[dict[str, Any]]
Get list of files for a specific model.
- Parameters:
model_id (UUID) – The ID of the model to retrieve files for.
db (Session) – Database session.
user_id (UUID) – ID of the user (obtained from auth token).
- Returns:
A list of dictionaries containing file information.
- Return type:
list[dict[str, Any]]
- Raises:
HTTPException – If the user does not have access to the model or if there is an error during the operation.