example-data.com
Menu
Browse docs and collections

Overview

comments / #1044

Comment #1044

· 8/15/2024

Abeo thalassinus conicio carcer stillicidium vito demum cohaero apparatus voluptate. Suffoco tumultus ars demens. Rerum cuppedia summa pax casso asperiores tum capillus demergo vesica. Velit depono via ait tabella pel sollicito caelestis admiratio.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1044,
  "userId": 206,
  "targetType": "post",
  "targetId": 213,
  "body": "Abeo thalassinus conicio carcer stillicidium vito demum cohaero apparatus voluptate. Suffoco tumultus ars demens. Rerum cuppedia summa pax casso asperiores tum capillus demergo vesica. Velit depono via ait tabella pel sollicito caelestis admiratio.",
  "isEdited": false,
  "createdAt": "2024-08-15T15:01:37.237Z",
  "updatedAt": "2024-08-15T15:01:37.237Z"
}