example-data.com
Menu
Browse docs and collections

Overview

comments / #111

Comment #111

· 8/9/2024

Totus aggredior audax alo tollo comprehendo ancilla. Agnosco viridis eos. Depulso collum conforto provident tabella ab utrimque trado conicio.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 111,
  "userId": 176,
  "targetType": "post",
  "targetId": 146,
  "body": "Totus aggredior audax alo tollo comprehendo ancilla. Agnosco viridis eos. Depulso collum conforto provident tabella ab utrimque trado conicio.",
  "isEdited": false,
  "createdAt": "2024-08-09T22:20:39.390Z",
  "updatedAt": "2024-08-09T22:20:39.390Z"
}