example-data.com
Menu
Browse docs and collections

Overview

comments / #1131

Comment #1131

· 1/9/2025

Abundans centum peccatus dignissimos convoco aut patrocinor vestrum. Vinculum adnuo cetera temeritas tremo stabilis. Adsum enim villa derelinquo carmen alias tollo ventito enim.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1131,
  "userId": 176,
  "targetType": "post",
  "targetId": 116,
  "body": "Abundans centum peccatus dignissimos convoco aut patrocinor vestrum. Vinculum adnuo cetera temeritas tremo stabilis. Adsum enim villa derelinquo carmen alias tollo ventito enim.",
  "isEdited": false,
  "createdAt": "2025-01-09T04:30:51.356Z",
  "updatedAt": "2025-01-09T04:30:51.356Z"
}