example-data.com
Menu
Browse docs and collections

Overview

comments / #1426

Comment #1426

· 12/1/2024

Amplitudo venia vesper capio video vestrum adipiscor aestas. Pauci trepide amita deleniti creo deripio deludo vel sapiente. Uter auditor deripio nisi. Alienus comitatus adiuvo coniecto verto ullam quidem subvenio apud comedo.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1426,
  "userId": 147,
  "targetType": "post",
  "targetId": 167,
  "body": "Amplitudo venia vesper capio video vestrum adipiscor aestas. Pauci trepide amita deleniti creo deripio deludo vel sapiente. Uter auditor deripio nisi. Alienus comitatus adiuvo coniecto verto ullam quidem subvenio apud comedo.",
  "isEdited": false,
  "createdAt": "2024-12-01T10:14:56.690Z",
  "updatedAt": "2024-12-01T10:14:56.690Z"
}