Rupa Rawi - Revou Group Project
  1. product review
Rupa Rawi - Revou Group Project
  • auth
    • register user
      POST
    • login
      POST
    • refresh token
      POST
  • user
    • address
      • create address
      • get all address
      • update address
      • delete address
    • payment method
      • get all payment methods
      • delete payment method
      • update payment method
      • create payment method
    • update own profile
      PUT
    • get own profile
      GET
    • get public profile
      GET
  • product
    • category
      • get categories tree
      • get categories detail
    • wishlist
      • add item to wishlist
      • remove item to wishlist
      • get wishlist
    • promotions
      • get promotion detail (public)
      • get active promotions (public)
    • get product details (public)
      GET
    • get product list (public)
      GET
    • get public vendor products
      GET
  • admin
    • category
      • create category
      • update category
      • soft delete category
      • create subcategory
    • vendor management
      • get all vendors
      • vendor application review
    • promotions
      • get all promotions
      • create promotion
      • update promotion
    • get admin logs
      GET
  • vendor
    • product
      • soft delete product
      • create product
      • update product
      • get vendor products
    • vendor apply
      POST
    • get vendor profile
      GET
    • update vendor profile
      PUT
    • vendor stats
      GET
    • Vendor recent orders
      GET
  • order
    • cart
      • add item to cart
      • update item in cart
      • delete item in cart
      • get cart
    • update order status
    • get order
    • get all orders
    • pre-checkout calculation
    • order checkout
  • article
    • delete article
    • create article
    • get article
    • get article detail
    • update article
  • product review
    • create review product
      POST
    • get product reviews by product id
      GET
    • get product review detail
      GET
    • update product review detail
      PUT
    • delete product review
      DELETE
  • testimony
    • create testimonial
    • update testimonial
    • get testimonial
    • delete testimonial
  1. product review

create review product

Developing
POST
/review
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/review' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc0NjQzMDQ5NCwianRpIjoiN2ExZGM1ZjktZGRlZC00NzlmLThlMDUtYTY5NTFiOWYxN2YzIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6IjkiLCJuYmYiOjE3NDY0MzA0OTQsImNzcmYiOiIyNWY2MzMwNy02OGMwLTQ3NjktYjI2Yi03MmU5ODcwOTczMGIiLCJ1c2VybmFtZSI6ImVjb19idXllcjMiLCJlbWFpbCI6ImJ1eWVyM0BleGFtcGxlLmNvbSJ9._ciuq4SS8hvuuKh2mKOo6IDp0gP28a7zqEcUx19CrZc' \
--header 'Content-Type: application/json' \
--data-raw '{
    "product_id": 8,
    "user_id" : 1,
    "rating" : 5,
    "comment" : "yes"
}'
Response Response Example
{
  "comment": "yes",
  "id": 4,
  "product_id": 8,
  "rating": 5,
  "user_id": 1
}

Request

Header Params
Authorization
string 
required
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc0NjQzMDQ5NCwianRpIjoiN2ExZGM1ZjktZGRlZC00NzlmLThlMDUtYTY5NTFiOWYxN2YzIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6IjkiLCJuYmYiOjE3NDY0MzA0OTQsImNzcmYiOiIyNWY2MzMwNy02OGMwLTQ3NjktYjI2Yi03MmU5ODcwOTczMGIiLCJ1c2VybmFtZSI6ImVjb19idXllcjMiLCJlbWFpbCI6ImJ1eWVyM0BleGFtcGxlLmNvbSJ9._ciuq4SS8hvuuKh2mKOo6IDp0gP28a7zqEcUx19CrZc
Body Params application/json
product_id
integer 
required
user_id
integer 
required
rating
integer 
required
comment
string 
required
Examples

Responses

🟢201Success
application/json
Body
comment
string 
required
id
integer 
required
product_id
integer 
required
rating
integer 
required
user_id
integer 
required
Modified at 2025-05-05 07:35:40
Previous
update article
Next
get product reviews by product id
Built with