Comment #138
· 3/2/2025
Dignissimos decipio sumo adaugeo dolorum calco vitae aptus.
Overview
comments / #138
Dignissimos decipio sumo adaugeo dolorum calco vitae aptus.
Comment #138
3/2/2025
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/138" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/138" ); 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/138"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/138"
)
comment = res.json() Response
{
"id": 138,
"userId": 5,
"targetType": "post",
"targetId": 127,
"body": "Dignissimos decipio sumo adaugeo dolorum calco vitae aptus.",
"isEdited": true,
"createdAt": "2025-03-02T23:40:35.662Z",
"updatedAt": "2025-06-27T09:08:34.727Z"
}