example-data.com
Menu
Browse docs and collections

Overview

product-reviews / #44

Cornu coma causa decerno summa.

productId
Handcrafted Bamboo Chair USD225.05
userId
Marta Harvey @marta.harvey68
rating
1
title
Cornu coma causa decerno summa.
body
Tyrannus vesica claustrum voco voluntarius. Strues atrocitas taedium repudiandae molestias defendo vomica depraedor. Vae coaegresco decerno conculco benigne commodi calcar.
isVerified
false
helpfulCount
77
createdAt
updatedAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/product-reviews/44" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/product-reviews/44"
);
const productReview = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/product-reviews.d.ts https://example-data.com/types/product-reviews.d.ts
import type { ProductReview } from "./types/product-reviews";

const res = await fetch(
  "https://example-data.com/api/v1/product-reviews/44"
);
const productReview = (await res.json()) as ProductReview;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/product-reviews/44"
)
product_review = res.json()

Response

{
  "id": 44,
  "productId": 8,
  "userId": 112,
  "rating": 1,
  "title": "Cornu coma causa decerno summa.",
  "body": "Tyrannus vesica claustrum voco voluntarius. Strues atrocitas taedium repudiandae molestias defendo vomica depraedor. Vae coaegresco decerno conculco benigne commodi calcar.",
  "isVerified": false,
  "helpfulCount": 77,
  "createdAt": "2024-07-04T20:40:18.159Z",
  "updatedAt": "2024-11-14T19:49:29.744Z"
}