Comment #179
· 5/28/2024
Sit thermae comptus.
comments / #179
Sit thermae comptus.
Comment #179
5/28/2024
curl -sS \
"https://example-data.com/api/v1/comments/179" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/comments/179"
);
const comment = await res.json();import type { Comment } from "https://example-data.com/types/comments.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/comments/179"
);
const comment = (await res.json()) as Comment;import requests
res = requests.get(
"https://example-data.com/api/v1/comments/179"
)
comment = res.json() {
"id": 179,
"userId": 27,
"targetType": "post",
"targetId": 433,
"body": "Sit thermae comptus.",
"isEdited": true,
"createdAt": "2024-05-28T14:29:09.959Z",
"updatedAt": "2024-10-13T07:04:53.634Z"
}