example-data.com
Menu
Browse docs and collections

Overview

comments / #263

Comment #263

· 5/28/2024

Accusator viduo pel defendo creber tenus beneficium commodo delibero. Victus attollo una.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 263,
  "userId": 231,
  "targetType": "post",
  "targetId": 421,
  "body": "Accusator viduo pel defendo creber tenus beneficium commodo delibero. Victus attollo una.",
  "isEdited": false,
  "createdAt": "2024-05-28T20:49:23.856Z",
  "updatedAt": "2024-05-28T20:49:23.856Z"
}