تخطَّ إلى المحتوى

عرض الإدخالات

GET /api/{projectId}/{collectionSlug}

المعاملات

المعاملالنوعالافتراضيالوصف
pageinteger1رقم الصفحة
per_pageinteger15عناصر في الصفحة (الحد الأقصى 100)
localestringافتراضي المشروعالتصفية حسب اللغة
statusstringpublishedpublished أو draft

مثال

Terminal window
curl https://your-domain.com/api/{projectId}/posts \
-H "Authorization: Bearer YOUR_API_TOKEN"

الاستجابة

{
"data": [
{
"uuid": "550e8400-...",
"status": "published",
"locale": "ar",
"fields": { "title": "مقالتي الأولى" }
}
],
"total": 42,
"current_page": 1,
"last_page": 3,
"per_page": 15
}