HTML ولقطات الشاشة: طرق API
راجع طرق HTTP لتنزيل نسخ HTML ولقطات الشاشة من المراقبة. تعرّف على المعرّفات والصلاحيات وأنواع الاستجابة.
في هذه الصفحة
- GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}/html
- GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}/screenshot
اختر طريقة من الفهرس. تحقق من طريقة HTTP والمسار والصلاحيات والمعلمات الإلزامية وجسم الطلب. كتل JSON التي تحتوي على schema وproperties و$ref تصف العقد، ولا تُرسل باعتبارها جسم طلب جاهزًا. أمثلة الطلبات ومخططات الردود معنونة بشكل منفصل.
GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}/html
المعلمات
نماذج البيانات المرتبطة: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · URLMD5 · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
report_id (path)
معرّف xid للتقرير أو القيمة الحرفية last. تُقبل القيمة last في معلمة المسار هذه فقط.
{
"required": true,
"schema": {
"type": "string",
"minLength": 4,
"maxLength": 64,
"pattern": "^([A-Za-z0-9_-]+|last)$"
}
}
url_md5 (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/URLMD5"
}
}
الاستجابات
200
ملف HTML محفوظ.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"Content-Disposition": {
"schema": {
"type": "string"
}
}
},
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
}
default
عند غياب المفتاح أو عدم صلاحيته، تصف ترويسات الحدود المحاولات الفاشلة لكل IP. بعد المصادقة تصف حدود المفتاح أو الحساب. قد تغيب عند الحظر المسبق أو تعذّر استخدام العدّاد. X-RateLimit-Reset طابع Unix بالثواني؛ وRetry-After عند 429 مدة انتظار بالثواني.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}/screenshot
المعلمات
نماذج البيانات المرتبطة: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · URLMD5 · XID
id (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/XID"
}
}
report_id (path)
معرّف xid للتقرير أو القيمة الحرفية last. تُقبل القيمة last في معلمة المسار هذه فقط.
{
"required": true,
"schema": {
"type": "string",
"minLength": 4,
"maxLength": 64,
"pattern": "^([A-Za-z0-9_-]+|last)$"
}
}
url_md5 (path)
{
"required": true,
"schema": {
"$ref": "#/components/schemas/URLMD5"
}
}
device (query)
{
"schema": {
"type": "string",
"enum": [
"desktop",
"mobile"
],
"default": "desktop"
}
}
الاستجابات
200
لقطة شاشة PNG محفوظة.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
}
},
"content": {
"image/png": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
