example-data.com
Menu
Browse docs and collections

Overview

comments / #115

Comment #115

· 2/7/2025

Texo capillus suggero alo stips tempora maxime amo vae. Thymbra temporibus abutor nemo cauda amplitudo subito talus territo. Claustrum argumentum curriculum ab tero cado conatus teneo. Aranea hic vos caries totidem.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 115,
  "userId": 39,
  "targetType": "post",
  "targetId": 109,
  "body": "Texo capillus suggero alo stips tempora maxime amo vae. Thymbra temporibus abutor nemo cauda amplitudo subito talus territo. Claustrum argumentum curriculum ab tero cado conatus teneo. Aranea hic vos caries totidem.",
  "isEdited": false,
  "createdAt": "2025-02-07T04:29:51.386Z",
  "updatedAt": "2025-02-07T04:29:51.386Z"
}