flip_api.project_services.get_models
Attributes
Functions
|
Get the models associated with a project. |
Module Contents
- flip_api.project_services.get_models.router
- flip_api.project_services.get_models.get_models(request: fastapi.Request, project_id: uuid.UUID, session: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID = Depends(verify_token)) flip_api.utils.paging_utils.IPagedData[flip_api.domain.interfaces.project.IModelsInfoResponse]
Get the models associated with a project.
- Parameters:
request (Request) – The HTTP request object, used to access query parameters.
project_id (UUID) – The unique identifier of the project.
session (Session) – The database session for querying.
user_id (UUID) – The ID of the user making the request.
- Returns:
A paginated response containing the models of the project.
- Return type:
- Raises:
HTTPException – If the project is not found or if the user does not have permission to access it.