flip_api.trusts_services.get_trusts =================================== .. py:module:: flip_api.trusts_services.get_trusts Attributes ---------- .. autoapisummary:: flip_api.trusts_services.get_trusts.router Functions --------- .. autoapisummary:: flip_api.trusts_services.get_trusts.get_trusts Module Contents --------------- .. py:data:: router .. py:function:: get_trusts(db: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID = Depends(verify_token)) -> list[flip_api.domain.interfaces.trust.IBasicTrust] Retrieve all trusts with their ID and name. :param db: Database session, provided by dependency injection. :type db: Session :param user_id: ID of the authenticated user making the request. :type user_id: UUID :returns: Every trust in the database, reduced to its ID and name. :rtype: list[IBasicTrust] :raises HTTPException: If an error occurs while fetching trusts from the database.