GET /api/v1/articles/{uuid}/export¶
Export konten artikel dalam format berbeda.
Request¶
GET /api/v1/articles/{uuid}/export?format=json|html|markdown
Authorization: Bearer nk_...
format |
Response |
|---|---|
json (default) |
Full publish payload (sama dengan detail) |
html |
text/html — body HTML saja |
markdown |
text/plain — body Markdown saja |
Contoh¶
# JSON
curl -s -H "Authorization: Bearer $NULIS_API_KEY" \
"https://studio.nulis.top/api/v1/articles/{uuid}/export"
# HTML
curl -s -H "Authorization: Bearer $NULIS_API_KEY" \
"https://studio.nulis.top/api/v1/articles/{uuid}/export?format=html"
# Markdown
curl -s -H "Authorization: Bearer $NULIS_API_KEY" \
"https://studio.nulis.top/api/v1/articles/{uuid}/export?format=markdown"