flip_api.project_services.get_project
Attributes
Functions
|
Retrieves detailed information for a given project ID. |
Module Contents
- flip_api.project_services.get_project.router
- flip_api.project_services.get_project.get_project_details_endpoint(request: fastapi.Request, project_id: uuid.UUID, db: sqlmodel.Session = Depends(get_session), current_user_id: uuid.UUID = Depends(verify_token)) flip_api.domain.interfaces.project.IReturnedProject
Retrieves detailed information for a given project ID. This includes owner details, query information, approved trusts, and users with access, similar to the getProject.ts lambda.
- Parameters:
request (Request) – The incoming HTTP request object.
project_id (UUID) – The ID of the project to retrieve details for.
db (Session) – The database session.
current_user_id (UUID) – The ID of the currently authenticated user.
- Returns:
An object containing detailed information about the project.
- Return type:
- Raises:
HTTPException – If the user does not have permission to access the project, if the project is not found, or if
there is an error retrieving the project details. –