example-data.com
Menu
Browse docs and collections

Overview

comments / #418

Comment #418

· 7/11/2024

Textilis capitulus paulatim suffragium benigne suus civitas. Qui terminatio timor tempore veniam titulus sint illo adipiscor. Curto comminor crapula sui aestas aegrus voluntarius deporto coepi. Abeo copia uter incidunt admitto tametsi anser conitor demum.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 418,
  "userId": 50,
  "targetType": "post",
  "targetId": 321,
  "body": "Textilis capitulus paulatim suffragium benigne suus civitas. Qui terminatio timor tempore veniam titulus sint illo adipiscor. Curto comminor crapula sui aestas aegrus voluntarius deporto coepi. Abeo copia uter incidunt admitto tametsi anser conitor demum.",
  "isEdited": false,
  "createdAt": "2024-07-11T05:13:15.005Z",
  "updatedAt": "2024-07-11T05:13:15.005Z"
}