Browse Profiles
Upsert a Browse Profile entry.
Creates a new Browse Profile if the provided id does not exist, or updates the existing Browse Profile with the given id.
Args: request (UpsertBrowseProfile): The Browse Profile data to insert or update. db (AsyncSession): The database session dependency.
Returns: JSONResponse: A JSON response containing the Browse Profile data that was upserted.
Raises: HTTPException: If the operation encounters an unexpected error (not currently implemented, but can be added for error handling).
Notes: - Uses FastCRUD for abstracted DB operations. - Relies on the id field to determine insert vs update.
- : Read Permissions
Browse Profile model.
Successful Response
Validation Error
No content
Get a Browse Profile by ID.
Args: id (int): The ID of the Browse Profile. db (AsyncSession): The database session.
Returns: JSONResponse: A JSON response containing the Browse Profile.
- : Read Permissions
Successful Response
Validation Error
No content
Delete a BrowseProfileModel row from the database by its primary keys: ['id'].
- : Read Permissions
Successful Response
Validation Error
No content
Update an existing BrowseProfileModel row in the database by its primary keys: ['id'].
- : Read Permissions
Create Browse Profile model.
Successful Response
Validation Error
No content
Get a paginated list of Browse Profiles.
Args: request (SmartSearchListBrowseRequest): The request object containing pagination parameters. db (AsyncSession): The database session.
Returns: JSONResponse: A JSON response containing the paginated list of Browse Profiles.
- : Read Permissions
110Successful Response
Validation Error
No content
Create a new BrowseProfileModel row in the database.
- : Read Permissions
Create Browse Profile model.
Successful Response
Validation Error
No content
Last updated
