example-data.com
Menu
Browse docs and collections

Overview

comments / #1475

Comment #1475

· 10/26/2024

Comes clamo minus placeat amplitudo super averto suscipit debeo truculenter. Alter calamitas censura arguo cura turba versus sperno triduana. Vinculum tres despecto cattus theologus tardus damnatio artificiose ademptio terror. Vomica saepe illum spectaculum rem tamdiu rerum.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1475,
  "userId": 154,
  "targetType": "post",
  "targetId": 129,
  "body": "Comes clamo minus placeat amplitudo super averto suscipit debeo truculenter. Alter calamitas censura arguo cura turba versus sperno triduana. Vinculum tres despecto cattus theologus tardus damnatio artificiose ademptio terror. Vomica saepe illum spectaculum rem tamdiu rerum.",
  "isEdited": false,
  "createdAt": "2024-10-26T11:26:05.000Z",
  "updatedAt": "2024-10-26T11:26:05.000Z"
}