Comment #9
· 10/6/2024
Utrimque id degusto tenax. Animi defero cornu clamo minus.
Overview
comments / #9
Utrimque id degusto tenax. Animi defero cornu clamo minus.
Comment #9
10/6/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/9" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/9" ); 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/9"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/9"
)
comment = res.json() Response
{
"id": 9,
"userId": 194,
"targetType": "post",
"targetId": 366,
"body": "Utrimque id degusto tenax. Animi defero cornu clamo minus.",
"isEdited": true,
"createdAt": "2024-10-06T14:06:59.268Z",
"updatedAt": "2025-04-16T02:19:56.828Z"
}