app/api/routes/endpoints/authentication.py
async def create(
        user_in_create: UserInCreate,
        user_account_service: UserAccountService = Depends()
) -> User:
    """
    Create a user by the given credentials.
    Route just creates a user in db. Mostly aims at the test fixtures or manual testing.

    Arguments
    ---------
        < UserInCreate > model

    Return
    ---------
        * Body
            < AuthenticationResult > model

    Raise
    ---------
        * 400 BAD REQUEST
            The given credentials are invalid or (most likely) already used before.
    """

    try:
        user = await user_account_service.register_user(user_in_create)
    except RegistrationError as error:
        raise HTTPException(HTTP_400_BAD_REQUEST, error.detail)
    else:
        return user

    Create a user by the given credentials.
    Route just creates a user in db. Mostly aims at the test fixtures or manual testing.

    Arguments
    ---------
        < UserInCreate > model

    Return
    ---------
        * Body
            < AuthenticationResult > model

    Raise
    ---------
        * 400 BAD REQUEST
            The given credentials are invalid or (most likely) already used before.
    
Create a user by the given credentials.
Route just creates a user in db. Mostly aims at the test fixtures or manual testing.

Arguments

< UserInCreate > model

Return

Body
< AuthenticationResult > model

Raise

400 BAD REQUEST
The given credentials are invalid or (most likely) already used before.
Create a user by the given credentials . Route just creates a user in db . Mostly aims at the test fixtures or manual testing . Arguments < UserInCreate > model Return Body < AuthenticationResult > model Raise 400 BAD REQUEST The given credentials are invalid or ( most likely ) already used before .
async def create(
        user_in_create: UserInCreate,
        user_account_service: UserAccountService = Depends()
) -> User:
    try:
        user = await user_account_service.register_user(user_in_create)
    except RegistrationError as error:
        raise HTTPException(HTTP_400_BAD_REQUEST, error.detail)
    else:
        return user
async def create ( user_in_create : UserInCreate , user_account_service : UserAccountService = Depends ( ) ) -> User : try : user = await user_account_service . register_user ( user_in_create ) except RegistrationError as error : raise HTTPException ( HTTP_400_BAD_REQUEST , error . detail ) else : return user
Create a user by the given credentials.
Create a user by the given credentials .
"""
    Create a user by the given credentials.
    Route just creates a user in db. Mostly aims at the test fixtures or manual testing.

    Arguments
    ---------
        < UserInCreate > model

    Return
    ---------
        * Body
            < AuthenticationResult > model

    Raise
    ---------
        * 400 BAD REQUEST
            The given credentials are invalid or (most likely) already used before.
    """
user_in_create
UserInCreate
user_account_service
UserAccountService