example-data.com
Menu
Browse docs and collections

Overview

comments / #1142

Comment #1142

· 1/10/2025

Iste canis thesaurus video triumphus tepesco usque sortitus. Vado voveo agnitio certus audentia vomer vulnus. Administratio accedo video adeo decens videlicet tonsor. Amita adsum annus.

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/comments/1142"
);
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/1142"
);
const comment = (await res.json()) as Comment;

Python example

import requests

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

Response

{
  "id": 1142,
  "userId": 168,
  "targetType": "post",
  "targetId": 189,
  "body": "Iste canis thesaurus video triumphus tepesco usque sortitus. Vado voveo agnitio certus audentia vomer vulnus. Administratio accedo video adeo decens videlicet tonsor. Amita adsum annus.",
  "isEdited": false,
  "createdAt": "2025-01-10T20:49:13.263Z",
  "updatedAt": "2025-01-10T20:49:13.263Z"
}