example-data.com

wishlists / #20

userId
Melba Collier @melba.collier
name
Back to School
isPublic
false
productIds
[
  18,
  149,
  109,
  42,
  150,
  166,
  77,
  91,
  153,
  122,
  88
]
createdAt
updatedAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/wishlists/20" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/wishlists/20"
);
const wishlist = await res.json();
import type { Wishlist } from "https://example-data.com/types/wishlists.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/wishlists/20"
);
const wishlist = (await res.json()) as Wishlist;
import requests

res = requests.get(
    "https://example-data.com/api/v1/wishlists/20"
)
wishlist = res.json()
{
  "id": 20,
  "userId": 19,
  "name": "Back to School",
  "isPublic": false,
  "productIds": [
    18,
    149,
    109,
    42,
    150,
    166,
    77,
    91,
    153,
    122,
    88
  ],
  "createdAt": "2024-10-09T06:08:02.508Z",
  "updatedAt": "2025-01-07T03:14:36.837Z"
}
Draftbit