نطاقات

ملاحظات
مستوى الخبراء
يجب إرسال مفتاح واجهة برمجة التطبيقات كرمز لحامله في رأس التفويض الخاص بالطلب. احصل على مفتاح واجهة برمجة تطبيقات الخاص بك.
قائمة

نقطة النهاية واجهة برمجة تطبيقات:

GET
https://shbbr.com/api/v1/domains

طلب مثال:

curl --location --request GET 'https://shbbr.com/api/v1/domains' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
معامل
النوع
وصف
search
اختياري string
استعلام البحث.
sort
اختياري string
فرز. القيم الممكنة هي :القيم. افتراضات إلى :القيمة.
per_page
اختياري int
النتائج لكل صفحه. القيم الممكنة هي :القيم. افتراضات إلى :القيمة.
عرض

نقطة النهاية واجهة برمجة تطبيقات:

GET
https://shbbr.com/api/v1/domains/{id}

طلب مثال:

curl --location --request GET 'https://shbbr.com/api/v1/domains/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
محل

نقطة النهاية واجهة برمجة تطبيقات:

POST
https://shbbr.com/api/v1/domains

طلب مثال:

curl --location --request POST 'https://shbbr.com/api/v1/domains' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
معامل
النوع
وصف
name
مطلوب string
اسم المجال.
index_page
اختياري string
صفحة الفهرس المراد إعادة التوجيه إليها.
not_found_page
اختياري string
صفحة 404 المراد إعادة التوجيه إليها.
تحديث

نقطة النهاية واجهة برمجة تطبيقات:

PUT PATCH
https://shbbr.com/api/v1/domains/{id}

طلب مثال:

curl --location --request PUT 'https://shbbr.com/api/v1/domains/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
معامل
النوع
وصف
index_page
اختياري string
صفحة الفهرس المراد إعادة التوجيه إليها.
not_found_page
اختياري string
صفحة 404 المراد إعادة التوجيه إليها.
مسح

نقطة النهاية واجهة برمجة تطبيقات:

DELETE
https://shbbr.com/api/v1/domains/{id}

طلب مثال:

curl --location --request DELETE 'https://shbbr.com/api/v1/domains/{id}' \
--header 'Authorization: Bearer {api_key}'