Rupa Rawi - Revou Group Project
  1. product
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
    • get product reviews by product id
    • get product review detail
    • update product review detail
    • delete product review
  • testimony
    • create testimonial
    • update testimonial
    • get testimonial
    • delete testimonial
  1. product

get product details (public)

Developing
GET
products/<int:product_id>
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'products/<int:product_id>' \
--header 'Content-Type: application/json' \
--data-raw '{}'
Response Response Example
{
  "product": {
    "average_rating": 0.0,
    "category_id": null,
    "created_at": "Thu, 01 May 2025 13:01:40 GMT",
    "description": "Handmade from me",
    "id": 8,
    "images": "[{'image_url': 'https://example.com/image.jpg', 'is_primary': False}, {'image_url': 'https://example.com/image2.jpg', 'is_primary': False}, {'image_url': 'https://example.com/primary-image.jpg', 'is_primary': True}]",
    "min_order_quantity": 1,
    "name": "Cheap item",
    "price": 5.0,
    "review_count": 0,
    "stock_quantity": 100,
    "sustainability_attributes": "['organic', 'carbon-neutral']",
    "tags": "['cheap', 'handmade']",
    "updated_at": "Thu, 01 May 2025 13:01:40 GMT",
    "vendor_id": 17
  },
  "success": true
}

Request

Body Params application/json
object {0}
Examples

Responses

🟢200Success
application/json
Body
product
object 
required
average_rating
integer 
required
category_id
null 
required
created_at
string 
required
description
string 
required
id
integer 
required
images
string 
required
min_order_quantity
integer 
required
name
string 
required
price
integer 
required
review_count
integer 
required
stock_quantity
integer 
required
sustainability_attributes
string 
required
tags
string 
required
updated_at
string 
required
vendor_id
integer 
required
success
boolean 
required
Modified at 2025-05-01 14:07:07
Previous
get active promotions (public)
Next
get product list (public)
Built with