List products in a hub for user search
Endpoint to retrieve products based on the passed string and hub ID.
Args: hub_id (int): Hub identifier. product_name: Product name to filter by. Defaults to Query(..., min_length=1, description="Search text"). subcategory_id: Subcategory ID to filter by. params (Params, optional): Pagination parameters. Defaults to Depends(). session (AsyncSession, optional): Database session. Defaults to Depends(async_get_session). product_controller (ProductController, optional): Product controller instance. Defaults to Depends(get_product_controller). hub_controller (HubController, optional): Hub controller instance. Defaults to Depends(get_hub_controller). user (User, optional): Authenticated user. Defaults to Depends(try_get_user_by_firebase_user).
Returns: List[ProductRetrieveSchema]: contains the products retrieved for the given hub_id and product_name, formatted according to the ProductRetrieveSchema Pydantic model
Request
- Base URL: https://api.venhub.com (the document declares no server; this is the origin it was published from)
- URL: https://api.venhub.com/hubs/{hub_id}/products
- Auth: none declared
Path parameters
Query parameters
Filter by subcategory
Filter by category
Search text
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.