Comment #142
· 10/18/2024
Clementia degenero mollitia natus solvo adversus centum aestus desipio. Beneficium conventus damnatio cervus benigne virga iste vel cogito.
Overview
comments / #142
Clementia degenero mollitia natus solvo adversus centum aestus desipio. Beneficium conventus damnatio cervus benigne virga iste vel cogito.
Comment #142
10/18/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/142" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/142" ); 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/142"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/142"
)
comment = res.json() Response
{
"id": 142,
"userId": 155,
"targetType": "post",
"targetId": 339,
"body": "Clementia degenero mollitia natus solvo adversus centum aestus desipio. Beneficium conventus damnatio cervus benigne virga iste vel cogito.",
"isEdited": false,
"createdAt": "2024-10-18T21:16:43.145Z",
"updatedAt": "2024-10-18T21:16:43.145Z"
}