Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Product Reviews API filters are not working

    Bug Report
    1
    1
    16
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      negarahmady last edited by negarahmady

      Hello,
      i'm using package bagisto-api

      I noticed an issue with the Product Reviews API endpoint:

      GET /api/shop/products/{productId}/reviews

      According to the documentation, this endpoint supports the following query parameters:

      rating
      status
      page
      limit
      sort

      However, these filters do not seem to work as expected. Sending requests with parameters such as:

      /api/shop/products/1/reviews?rating=5
      /api/shop/products/1/reviews?status=approved
      /api/shop/products/1/reviews?sort=latest

      returns the same results as an unfiltered request.

      Could you please verify whether these query parameters are currently supported by the implementation, or if there is a discrepancy between the documentation and the API behavior?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post