example-data.com
Menu
Browse docs and collections

Overview

comments / #1439

Comment #1439

· 7/1/2024

Corrumpo vociferor defetiscor sumptus esse verus conduco crustulum certe. Vulariter depraedor trepide adnuo acervus temeritas trado dolorum.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1439,
  "userId": 171,
  "targetType": "post",
  "targetId": 464,
  "body": "Corrumpo vociferor defetiscor sumptus esse verus conduco crustulum certe. Vulariter depraedor trepide adnuo acervus temeritas trado dolorum.",
  "isEdited": false,
  "createdAt": "2024-07-01T10:05:30.193Z",
  "updatedAt": "2024-07-01T10:05:30.193Z"
}