example-data.com
Menu
Browse docs and collections

Overview

comments / #101

Comment #101

· 2/4/2025

Certe bene nostrum charisma tempore amplexus adsum approbo atque ducimus. Utilis stipes sequi ciminatio. Pauci nobis ambitus aptus stella. Aliquam veniam annus volo usitas.

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/comments/101" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/comments/101"
);
const comment = await res.json();

TypeScript example

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

const res = await fetch(
  "https://example-data.com/api/v1/comments/101"
);
const comment = (await res.json()) as Comment;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/comments/101"
)
comment = res.json()

Response

{
  "id": 101,
  "userId": 205,
  "targetType": "post",
  "targetId": 444,
  "body": "Certe bene nostrum charisma tempore amplexus adsum approbo atque ducimus. Utilis stipes sequi ciminatio. Pauci nobis ambitus aptus stella. Aliquam veniam annus volo usitas.",
  "isEdited": false,
  "createdAt": "2025-02-04T17:34:57.230Z",
  "updatedAt": "2025-02-04T17:34:57.230Z"
}