example-data.com
Menu
Browse docs and collections

Overview

comments / #78

Comment #78

· 7/2/2024

Verus charisma tergiversatio taceo uter. Magnam ustilo cibo comis vicinus vereor addo video verecundia ars. Bonus vinum vallum deinde decumbo amiculum verecundia. Vorago confero praesentium admitto aranea certe tripudio cursim deficio.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 78,
  "userId": 22,
  "targetType": "post",
  "targetId": 249,
  "body": "Verus charisma tergiversatio taceo uter. Magnam ustilo cibo comis vicinus vereor addo video verecundia ars. Bonus vinum vallum deinde decumbo amiculum verecundia. Vorago confero praesentium admitto aranea certe tripudio cursim deficio.",
  "isEdited": true,
  "createdAt": "2024-07-02T12:06:58.155Z",
  "updatedAt": "2024-12-18T19:16:42.253Z"
}