example-data.com
Menu
Browse docs and collections

Overview

comments / #1084

Comment #1084

· 12/30/2024

Compello curto theca in ulciscor vapulus venustas defero verbera thermae. Corrupti ullus abscido expedita. Tempora possimus audio unde talus abscido degusto molestiae. Tutis defluo talus vobis ulterius cotidie depereo tamdiu.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1084,
  "userId": 208,
  "targetType": "post",
  "targetId": 412,
  "body": "Compello curto theca in ulciscor vapulus venustas defero verbera thermae. Corrupti ullus abscido expedita. Tempora possimus audio unde talus abscido degusto molestiae. Tutis defluo talus vobis ulterius cotidie depereo tamdiu.",
  "isEdited": false,
  "createdAt": "2024-12-30T03:41:43.146Z",
  "updatedAt": "2024-12-30T03:41:43.146Z"
}