Comment #1114
· 9/19/2024
Verumtamen volubilis reiciendis arx dignissimos soleo cura cras.
Overview
comments / #1114
Verumtamen volubilis reiciendis arx dignissimos soleo cura cras.
Comment #1114
9/19/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/1114" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/1114" ); 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/1114"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/1114"
)
comment = res.json() Response
{
"id": 1114,
"userId": 146,
"targetType": "post",
"targetId": 103,
"body": "Verumtamen volubilis reiciendis arx dignissimos soleo cura cras.",
"isEdited": false,
"createdAt": "2024-09-19T07:22:33.032Z",
"updatedAt": "2024-09-19T07:22:33.032Z"
}