example-data.com
Menu
Browse docs and collections

Overview

comments / #1179

Comment #1179

· 1/1/2025

Ciminatio taedium odio architecto cena decretum universe tener vulgo amo. Textilis distinctio ipsum strenuus spiritus quaerat unde libero. Cupiditas optio minus creta mollitia aestas ratione corrumpo magni subito. Calamitas conforto deripio taceo abeo soluta cras pel.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1179,
  "userId": 214,
  "targetType": "post",
  "targetId": 163,
  "body": "Ciminatio taedium odio architecto cena decretum universe tener vulgo amo. Textilis distinctio ipsum strenuus spiritus quaerat unde libero. Cupiditas optio minus creta mollitia aestas ratione corrumpo magni subito. Calamitas conforto deripio taceo abeo soluta cras pel.",
  "isEdited": false,
  "createdAt": "2025-01-01T19:51:20.767Z",
  "updatedAt": "2025-01-01T19:51:20.767Z"
}