Comment #13
· 5/28/2024
Curso verbum calamitas. Sollicito pectus utique caput.
Overview
comments / #13
Curso verbum calamitas. Sollicito pectus utique caput.
Comment #13
5/28/2024
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/13" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/13" ); 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/13"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/13"
)
comment = res.json() Response
{
"id": 13,
"userId": 54,
"targetType": "post",
"targetId": 285,
"body": "Curso verbum calamitas. Sollicito pectus utique caput.",
"isEdited": false,
"createdAt": "2024-05-28T22:15:45.882Z",
"updatedAt": "2024-05-28T22:15:45.882Z"
}