example-data.com
Menu
Browse docs and collections

Overview

comments / #1129

Comment #1129

· 1/21/2025

Ultio ciminatio spes vulnus ulterius aperiam. Taedium adulatio cado molestiae aspernatur stipes apto peior copia. Attero despecto corroboro delibero cotidie accusator accusator bonus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1129,
  "userId": 115,
  "targetType": "post",
  "targetId": 357,
  "body": "Ultio ciminatio spes vulnus ulterius aperiam. Taedium adulatio cado molestiae aspernatur stipes apto peior copia. Attero despecto corroboro delibero cotidie accusator accusator bonus.",
  "isEdited": false,
  "createdAt": "2025-01-21T05:53:06.308Z",
  "updatedAt": "2025-01-21T05:53:06.308Z"
}