example-data.com
Menu
Browse docs and collections

Overview

comments / #193

Comment #193

· 8/14/2024

Sponte deripio balbus umquam deprimo. Vestrum victus currus ciminatio tabesco adopto cunctatio eveniet vel. Audax amissio desidero absens campana dedico sui. Confido tonsor demo debeo carpo vivo.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 193,
  "userId": 214,
  "targetType": "post",
  "targetId": 88,
  "body": "Sponte deripio balbus umquam deprimo. Vestrum victus currus ciminatio tabesco adopto cunctatio eveniet vel. Audax amissio desidero absens campana dedico sui. Confido tonsor demo debeo carpo vivo.",
  "isEdited": false,
  "createdAt": "2024-08-14T17:14:20.548Z",
  "updatedAt": "2024-08-14T17:14:20.548Z"
}