example-data.com

wishlists / #134

userId
Glenna Keebler @glenna_keebler
name
Saved for Later
isPublic
false
productIds
[
  151,
  144,
  55,
  35,
  199,
  181,
  178,
  64
]
createdAt
updatedAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/wishlists/134" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/wishlists/134"
);
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/134"
);
const wishlist = (await res.json()) as Wishlist;
import requests

res = requests.get(
    "https://example-data.com/api/v1/wishlists/134"
)
wishlist = res.json()
{
  "id": 134,
  "userId": 134,
  "name": "Saved for Later",
  "isPublic": false,
  "productIds": [
    151,
    144,
    55,
    35,
    199,
    181,
    178,
    64
  ],
  "createdAt": "2024-07-10T18:18:29.637Z",
  "updatedAt": "2024-12-11T00:30:36.234Z"
}
Draftbit