example-data.com
Menu
Browse docs and collections

Overview

comments / #939

Comment #939

· 12/29/2024

Vitae vesco thymbra architecto valeo demitto tenax. Apud chirographum deduco colligo debitis caecus. Cometes coruscus error utrum asper sollicito apparatus corrupti. Summa vicinus valeo accedo denego cena sulum minima eius.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 939,
  "userId": 163,
  "targetType": "post",
  "targetId": 45,
  "body": "Vitae vesco thymbra architecto valeo demitto tenax. Apud chirographum deduco colligo debitis caecus. Cometes coruscus error utrum asper sollicito apparatus corrupti. Summa vicinus valeo accedo denego cena sulum minima eius.",
  "isEdited": false,
  "createdAt": "2024-12-29T08:14:54.304Z",
  "updatedAt": "2024-12-29T08:14:54.304Z"
}