flip_api.project_services.get_project_approved_trusts
Attributes
Functions
|
Retrieves a list of trusts that have been approved for the specified project. |
Module Contents
- flip_api.project_services.get_project_approved_trusts.router
- flip_api.project_services.get_project_approved_trusts.get_project_approved_trusts_endpoint(project_id: uuid.UUID, session: sqlmodel.Session = Depends(get_session), current_user_id: uuid.UUID = Depends(verify_token)) list[flip_api.db.models.main_models.Trust]
Retrieves a list of trusts that have been approved for the specified project. The project must have a status of ‘APPROVED’.
- Parameters:
project_id (UUID) – The ID of the project to retrieve approved trusts for.
session (Session) – Database session, provided by dependency injection.
current_user_id (UUID) – The ID of the currently authenticated user, provided by dependency injection.
- Returns:
A list of approved trusts for the project.
- Return type:
list[Trust]
- Raises:
HTTPException – If the request cannot be processed.