example-data.com
Menu
Browse docs and collections

Overview

comments / #963

Comment #963

· 9/24/2024

Capillus rerum textilis. Conculco careo usque amitto aegrus conventus defluo caute. Constans patrocinor arca decens debeo est speculum stella.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 963,
  "userId": 153,
  "targetType": "post",
  "targetId": 272,
  "body": "Capillus rerum textilis. Conculco careo usque amitto aegrus conventus defluo caute. Constans patrocinor arca decens debeo est speculum stella.",
  "isEdited": false,
  "createdAt": "2024-09-24T07:37:44.798Z",
  "updatedAt": "2024-09-24T07:37:44.798Z"
}