example-data.com
Menu
Browse docs and collections

Overview

comments / #357

Comment #357

· 7/4/2024

Colligo statua tabgo reiciendis usque villa bene. Voluptatibus combibo voluptate timor assentator ex. Defaeco calcar vesper tego cibo artificiose. Summa atrocitas illo supellex inflammatio utrum.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 357,
  "userId": 237,
  "targetType": "post",
  "targetId": 60,
  "body": "Colligo statua tabgo reiciendis usque villa bene. Voluptatibus combibo voluptate timor assentator ex. Defaeco calcar vesper tego cibo artificiose. Summa atrocitas illo supellex inflammatio utrum.",
  "isEdited": true,
  "createdAt": "2024-07-04T19:51:44.214Z",
  "updatedAt": "2024-07-30T05:54:10.515Z"
}