example-data.com
Menu
Browse docs and collections

Overview

comments / #996

Comment #996

· 10/2/2024

Demitto comis antea crudelis calcar adversus ustilo. Facere vomica molestiae voluptas caecus video dapifer accusantium tres cattus. Concido casso articulus tempus arbor ara sufficio tempore.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 996,
  "userId": 144,
  "targetType": "post",
  "targetId": 143,
  "body": "Demitto comis antea crudelis calcar adversus ustilo. Facere vomica molestiae voluptas caecus video dapifer accusantium tres cattus. Concido casso articulus tempus arbor ara sufficio tempore.",
  "isEdited": false,
  "createdAt": "2024-10-02T01:11:02.428Z",
  "updatedAt": "2024-10-02T01:11:02.428Z"
}