quotes / #1
- text
- Be the change that you wish to see in the world.
- authorName
- Mahatma Gandhi
- source
- —
- category
- Inspiration
- createdAt
Component variants
curl -sS \
"https://example-data.com/api/v1/quotes/1" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/quotes/1"
);
const quote = await res.json();import type { Quote } from "https://example-data.com/types/quotes.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/quotes/1"
);
const quote = (await res.json()) as Quote;import requests
res = requests.get(
"https://example-data.com/api/v1/quotes/1"
)
quote = res.json() {
"id": 1,
"text": "Be the change that you wish to see in the world.",
"authorName": "Mahatma Gandhi",
"source": null,
"category": "Inspiration",
"createdAt": "2025-03-23T18:12:43.329Z"
}