Ana Sayfa / API ile Diff değişiklik izleme

API ile Diff değişiklik izleme

API ile Diff değişiklik izleme. HTTP istekleri, parametreler, yanıt şemaları ve Labrika iş akışları.

Bu sayfada

Değişiklik izleme

Bu API, izleme projelerini, kontrol geçmişini ve sayfa değişikliklerini sunar. Sonuçları kendi panonuzda, dışa aktarımlarda veya yayın öncesi kontrollerde kullanabilirsiniz.

Bir proje alın, geçmişinden bir rapor seçin ve rapor satırlarını yükleyin. Sayfanın url_md5 değerini ilgili satırdan kopyalayın. last projenin tamamlanmış son raporunu seçer; tekrarlanabilir dışa aktarımlar için belirli bir report_id kullanın.
İzinler
  • diff-projects:read
  • diff-reports:read
  • diff_project_id değerini almak için /public-api/v1/diff-projects ile başlayın.
  • Rapor geçmişi: /public-api/v1/diff-projects/{diff_project_id}/reports.
  • Son rapor: report_id yerine last gönderin.
  • /public-api/v1/diff-projects/{diff_project_id}/reports/{report_id}/rows içindeki include_state=true, sayfa durumunu ve dosya kullanılabilirliği bilgilerini ekler.
Proje, rapor ve satır listeleri data içinde döner. pagination.has_more değeri true olduğu sürece pagination.next_offset değerini offset olarak gönderin. limit: 1–10000, varsayılan 1000; offset: 0 veya üzeri, varsayılan 0.
GET /public-api/v1/diff-projects

Mevcut kullanıcının izleme projelerini döndürür. Sonraki isteklerde data[].diff_project_id kullanın.

GET /public-api/v1/diff-projects/{diff_project_id}/reports

Kontrol geçmişini döndürür: report_id, durum, oluşturulma zamanı, sayfa ve uyarı sayıları.

GET /public-api/v1/diff-projects/{diff_project_id}/report-graph

İzleme sonuçlarının zaman içindeki değişimini göstermek için projenin kontrol geçmişine ait grafik verileri.

GET /public-api/v1/diff-projects/{diff_project_id}/reports/{report_id}/rows

Seçilen kontrolün sayfalarını ve bulunan değişiklikleri döndürür. report_id alanına geçmişteki bir kimliği veya last değerini girin.

Parametreler
Parametre Tür Açıklama
include_state boolean true; title, description, h1, izlenen etiketler, dosyalar ve diğer durum alanlarını ekler.
limit / offset integer Satırları sayfalı olarak alır. En yüksek limit değeri 10.000'dir.
has_alert boolean Uyarı tetiklenmiş satırları filtreler.
GET /public-api/v1/diff-projects/{diff_project_id}/reports/{report_id}/pages/{url_md5}

Seçilen rapor için kaydedilmiş ayrıntılı sayfa verileri.

Durum içeren satırlar
curl
curl --fail-with-body --silent --show-error --location \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Accept: application/json' \
  'https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0'
JavaScript
async function main () {
  const response = await fetch("https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0", {
    method: "GET",
    headers: {
      "Authorization": "Bearer YOUR_API_KEY",
      "Accept": "application/json",
    },
    signal: AbortSignal.timeout(30_000),
  })

  if (!response.ok) {
    const responseText = await response.text()
    throw new Error(`HTTP ${response.status}: ${responseText}`)
  }

  const responseText = await response.text()
  const data = responseText && response.headers.get("content-type")?.includes("application/json") ? JSON.parse(responseText) : responseText

  console.log(data)
}

main().catch(error => {
  console.error(error)
  process.exitCode = 1
})
Python
import json
import requests

url = "https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.request(
    "GET",
    url,
    headers=headers,
    timeout=30,
)
response.raise_for_status()
print(json.dumps(response.json(), ensure_ascii=False, indent=2) if response.content and "application/json" in response.headers.get("Content-Type", "") else response.text)
PHP
<?php

$curl = curl_init('https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0');

if ($curl === false) {
    throw new RuntimeException('Unable to initialize cURL');
}

curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer YOUR_API_KEY',
        'Accept: application/json',
    ],
]);

$response = curl_exec($curl);

if ($response === false) {
    $message = curl_error($curl);
    curl_close($curl);
    throw new RuntimeException('Network error: ' . $message);
}

$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE) ?: '';
curl_close($curl);

if ($status < 200 || $status >= 300) {
    throw new RuntimeException("HTTP $status: $response");
}

if ($response !== '' && str_contains($contentType, 'application/json')) {
    print_r(json_decode($response, true, 512, JSON_THROW_ON_ERROR));
} else {
    echo $response;
}
Go
package main

import (
	"context"
	"fmt"
	"io"
	"net/http"
	"os"
	"time"
)

func main() {
	ctx, cancel := context.WithTimeout(context.Background(), 30 * time.Second)
	defer cancel()

	request, err := http.NewRequestWithContext(ctx, http.MethodGet, "https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0", nil)
	if err != nil {
		panic(err)
	}

	request.Header.Set("Authorization", "Bearer YOUR_API_KEY")
	request.Header.Set("Accept", "application/json")

	client := &http.Client{Timeout: 30 * time.Second}
	response, err := client.Do(request)
	if err != nil {
		panic(err)
	}
	defer response.Body.Close()

	if response.StatusCode < http.StatusOK || response.StatusCode >= http.StatusMultipleChoices {
		errorBody, readErr := io.ReadAll(response.Body)
		if readErr != nil {
			panic(readErr)
		}
		panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, errorBody))
	}

	if _, err := io.Copy(os.Stdout, response.Body); err != nil {
		panic(err)
	}
}
Google Apps Script
function callLabrikaPublicAPI() {
  const response = UrlFetchApp.fetch("https://app.labrika.com/public-api/v1/diff-projects/PROJECT_ID/reports/last/rows?include_state=true&limit=1000&offset=0", {
    method: "get",
    headers: {
      "Authorization": "Bearer YOUR_API_KEY",
      "Accept": "application/json",
    },
    followRedirects: false,
    muteHttpExceptions: true,
  });
  const status = response.getResponseCode();
  if (status < 200 || status >= 300) {
    throw new Error('HTTP ' + status + ': ' + response.getContentText());
  }
  Logger.log(response.getContentText());
}

İçeriğe dön

API yöntemleri başvuru kılavuzu — Diff

İçindekilerden bir yöntem seçin. HTTP yöntemini, yolu, izinleri, zorunlu parametreleri ve istek gövdesini kontrol edin. schema, properties ve $ref içeren JSON blokları sözleşmeyi açıklar; bunları hazır istek gövdesi olarak göndermeyin. İstek örnekleri ve yanıt şemaları ayrı etiketlenmiştir.

Bu bölümdeki yöntemler

GET /public-api/v1/diff-projects

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffProjectListResponse · ErrorResponse

limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}

Yanıtlar

200

Diff projeleri.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffProjectListResponse"
      }
    }
  }
}
default

Anahtar eksik veya geçersizse limit başlıkları IP başına başarısız denemeleri gösterir. Kimlik doğrulamasından sonra anahtar veya hesap limiti geçerlidir. Önceden engelleme veya sayaç kullanılamaması durumunda başlıklar bulunmayabilir. X-RateLimit-Reset saniye cinsinden Unix zamanıdır; 429 için Retry-After saniye cinsinden bekleme süresidir.

{
  "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

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffReportListResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}
status (query)
{
  "schema": {
    "type": "string",
    "enum": [
      "progress",
      "done",
      "failed"
    ]
  }
}
created_from (query)
{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}
created_to (query)
{
  "schema": {
    "type": "string",
    "format": "date-time"
  }
}

Yanıtlar

200

Diff raporları.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffReportListResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/report-graph

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffReportGraphResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}

Yanıtlar

200

Diff raporu grafiği.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffReportGraphResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/reports/{report_id}/rows

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffReportRowsResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
report_id (path)

Rapor xid değeri veya last sabit değeri. last yalnızca bu yol parametresinde kabul edilir.

{
  "required": true,
  "schema": {
    "type": "string",
    "minLength": 4,
    "maxLength": 64,
    "pattern": "^([A-Za-z0-9_-]+|last)$"
  }
}
include_state (query)
{
  "schema": {
    "type": "boolean",
    "default": false
  }
}
limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}
search (query)
{
  "schema": {
    "type": "string",
    "maxLength": 300
  }
}
url_md5 (query)
{
  "schema": {
    "type": "string",
    "pattern": "^[a-fA-F0-9]{32}$"
  }
}
has_alert (query)
{
  "schema": {
    "type": "boolean"
  }
}
rule_id (query)
{
  "schema": {
    "type": "string"
  }
}
http_status (query)
{
  "schema": {
    "type": "integer",
    "minimum": 100,
    "maximum": 599
  }
}
changed_field (query)
{
  "schema": {
    "type": "string"
  }
}
alert_trigger_code (query)
{
  "schema": {
    "type": "string"
  }
}
alert_trigger_group (query)
{
  "schema": {
    "type": "string"
  }
}

Yanıtlar

200

Diff raporu satırları.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffReportRowsResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/reports/{report_id}/pages/{url_md5}

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffPageDetailResponse · ErrorResponse · URLMD5 · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
report_id (path)

Rapor xid değeri veya last sabit değeri. last yalnızca bu yol parametresinde kabul edilir.

{
  "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"
  }
}

Yanıtlar

200

Diff sayfa ayrıntıları.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffPageDetailResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

İçeriğe dön

URL’ler ve değişiklik izleme kuralları

URL'ler ve kurallar yalnızca gelecekteki raporları etkiler. Geçmiş raporlar, çalıştırıldıkları anda hesaplanan verileri korur.

409 rule_in_use: Bu kural otomatik URL eklemede, içe aktarmada ve API’de kullanılır. Silmeden önce yeni sayfalar için başka bir kural seçip kaydedin.

İzinler
  • GET → diff-urls:read, diff-rules:read
  • POST / PATCH / DELETE → diff-urls:write, diff-rules:write
  • POST /public-api/v1/diff-projects/{diff_project_id}/urls?dry_run=true, URL'leri kaydetmeden doğrular.
  • Toplu URL içe aktarımlarında Idempotency-Key önerilir.
  • POST için alert_rule_id atlanırsa veya null ise URL listesi ayarlarındaki yeni sayfa kuralı kalıcı olarak atanır. null içeren PATCH bu güncel kuralı seçilen URL’lere açıkça atar. Sonraki ayar değişiklikleri mevcut sayfaları etkilemez; mevcut URL için tekrarlanan POST önceki kuralı korur. Kaydedilmiş seçim yoksa yanıt 409 default_rule_not_configured olur.
  • Bir URL'nin silinmesi önceki raporlardaki geçmiş satırları silmez.
  • Bir kural yalnızca varsayılan değilse ve açıkça atanmış URL'si yoksa silinebilir.

URL’ler: urls, en fazla 1000 mutlak HTTP/HTTPS adresi içeren dizidir. url_md5 değerini API’nin normalleştirilmiş sonucundan alın; ilk girdiden hesaplamayın. Atlanan veya null olan alert_rule_id proje kuralını kullanır; effective_rule_id uygulanan kuralı, uses_default_rule her zaman false değerini belirtir. dry_run=true URL kaydetmez: would_create_count ve errors alanlarını kontrol edin. Toplu atama 1–10000 url_md5s kabul eder. Sayfalama: limit 1–10000 (varsayılan 1000), offset en az 0.

Kural: name 1–32 karakterdir; parsing_javascript, screenshot_desktop, screenshot_mobile ve available boolean değerlerdir. screenshot_delay: bir ondalık basamakla 1–10 saniye; percent_diff_html/text/meta: %0–100; load_time_more: 0,1–10 saniye; min_page_size/max_page_size: 0–10000000 bayt, minimum maksimumu aşamaz. expected_http_status değerlerini rules/expected-http-statuses üzerinden alın. tracked_tags: en fazla 6 öğe, benzersiz number 1–6, mode css veya regex, pattern en fazla 1000 karakter. missing_html/appearing_html: her biri en fazla 1000 karakter olan 20 dize. İsteğe bağlı eşikler null kabul eder.

Kural oluşturma 201 ve data; PATCH 200 ve data; DELETE gövdesiz 204 döndürür. PATCH düzenlenebilir ayarları değiştirir: name dahil korumak istediğiniz tüm değerleri gönderin. Atlanan boolean değerler false olur, diziler temizlenir ve isteğe bağlı değerler null olur. Önce kuralı GET ile alın. Projenin varsayılan kuralı ve URL’lere açıkça atanmış kurallar silinemez.

URL doğrulama
http/httpsYalnızca mutlak HTTP/HTTPS URL'leri desteklenir.
IDNUluslararası alan adları desteklenir ve Punycode biçimine dönüştürülür.
domain_blockedAlan adı ürünün engelleme listesinde.
unsafe_urlURL, SSRF koruması tarafından reddedildi.

İçeriğe dön

API yöntemleri başvuru kılavuzu — URLs

İçindekilerden bir yöntem seçin. HTTP yöntemini, yolu, izinleri, zorunlu parametreleri ve istek gövdesini kontrol edin. schema, properties ve $ref içeren JSON blokları sözleşmeyi açıklar; bunları hazır istek gövdesi olarak göndermeyin. İstek örnekleri ve yanıt şemaları ayrı etiketlenmiştir.

Bu bölümdeki yöntemler

GET /public-api/v1/diff-projects/{id}/urls

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffURLListResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}

Yanıtlar

200

İzlenen URL'ler.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLListResponse"
      }
    }
  }
}
default

Anahtar eksik veya geçersizse limit başlıkları IP başına başarısız denemeleri gösterir. Kimlik doğrulamasından sonra anahtar veya hesap limiti geçerlidir. Önceden engelleme veya sayaç kullanılamaması durumunda başlıklar bulunmayabilir. X-RateLimit-Reset saniye cinsinden Unix zamanıdır; 429 için Retry-After saniye cinsinden bekleme süresidir.

{
  "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"
      }
    }
  }
}

POST /public-api/v1/diff-projects/{id}/urls

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffURLAddRequest · DiffURLAddResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
dry_run (query)
{
  "schema": {
    "type": "boolean",
    "default": false
  }
}
Idempotency-Key (header)
{
  "schema": {
    "type": "string",
    "minLength": 1,
    "maxLength": 255
  }
}

İstek

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLAddRequest"
      }
    }
  }
}

Yanıtlar

200

URL ekleme sonucu.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLAddResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

DELETE /public-api/v1/diff-projects/{id}/urls/{url_md5}

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · URLMD5 · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
url_md5 (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/URLMD5"
  }
}

Yanıtlar

204

Silindi. Yanıt gövdesi boştur.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  }
}
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"
      }
    }
  }
}

PATCH /public-api/v1/diff-projects/{id}/urls/{url_md5}/rule

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffURLRulePatchRequest · DiffURLRulePatchResponse · ErrorResponse · URLMD5 · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
url_md5 (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/URLMD5"
  }
}

İstek

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLRulePatchRequest"
      }
    }
  }
}

Yanıtlar

200

URL kural atama sonucu.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLRulePatchResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

PATCH /public-api/v1/diff-projects/{id}/urls/rule

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffURLBulkRulePatchRequest · DiffURLRulePatchResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

İstek

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLBulkRulePatchRequest"
      }
    }
  }
}

Yanıtlar

200

URL kural atama sonucu.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffURLRulePatchResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

İçeriğe dön

API yöntemleri başvuru kılavuzu — Rules

İçindekilerden bir yöntem seçin. HTTP yöntemini, yolu, izinleri, zorunlu parametreleri ve istek gövdesini kontrol edin. schema, properties ve $ref içeren JSON blokları sözleşmeyi açıklar; bunları hazır istek gövdesi olarak göndermeyin. İstek örnekleri ve yanıt şemaları ayrı etiketlenmiştir.

Bu bölümdeki yöntemler

GET /public-api/v1/diff-projects/{id}/rules

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleListResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 1000
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}

Yanıtlar

200

Uyarı kuralları.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleListResponse"
      }
    }
  }
}
default

Anahtar eksik veya geçersizse limit başlıkları IP başına başarısız denemeleri gösterir. Kimlik doğrulamasından sonra anahtar veya hesap limiti geçerlidir. Önceden engelleme veya sayaç kullanılamaması durumunda başlıklar bulunmayabilir. X-RateLimit-Reset saniye cinsinden Unix zamanıdır; 429 için Retry-After saniye cinsinden bekleme süresidir.

{
  "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"
      }
    }
  }
}

POST /public-api/v1/diff-projects/{id}/rules

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleResponse · DiffRuleWriteRequest · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

İstek

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleWriteRequest"
      }
    }
  }
}

Yanıtlar

201

Uyarı kuralı.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/rules/expected-http-statuses

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleExpectedHTTPStatusesResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Yanıtlar

200

Beklenen HTTP durumları.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleExpectedHTTPStatusesResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/rules/{rule_id}

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
rule_id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Yanıtlar

200

Uyarı kuralı.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

PATCH /public-api/v1/diff-projects/{id}/rules/{rule_id}

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRuleResponse · DiffRuleWriteRequest · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
rule_id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

İstek

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleWriteRequest"
      }
    }
  }
}

Yanıtlar

200

Uyarı kuralı.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRuleResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

DELETE /public-api/v1/diff-projects/{id}/rules/{rule_id}

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
rule_id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Yanıtlar

204

Silindi. Yanıt gövdesi boştur.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  }
}
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"
      }
    }
  }
}

İçeriğe dön

Site değişikliği kontrolü başlatma

Bu bölüm, değişiklik izlemede yeni bir kontrol başlatmayı açıklar. Seçilen projedeki izlenen tüm URL’ler kontrol edilir. Önce bakiyeyi kontrol edip maliyeti hesaplayın, ardından Idempotency-Key başlığıyla başlatma isteğini gönderin. Maliyet hesabı ücretlendirme yapmaz.

İzinler
  • diff-reports:run
  • /public-api/v1/diff-projects/{diff_project_id}/balance, kullanılabilir ödeme kaynaklarını döndürür.
  • /public-api/v1/diff-projects/{diff_project_id}/reports/cost, 10 dakika geçerli imzalı bir cost_estimate_id döndürür.
  • /public-api/v1/diff-projects/{diff_project_id}/reports/run, ücreti hesaptan düşer ve analizi kuyruğa alır.
  • Yalnızca projenin tamamı analiz edilebilir: scope=all_urls. v1, seçili URL'leri desteklemez.
  • Yeniden denemelerde aynı API anahtarını, aynı Idempotency-Key değerini ve değişmemiş istek parametrelerini kullanın.

Otomatik URL ekleme etkinse /reports/cost önce URL listesini günceller ve yeni sayfalara projenin kaydedilmiş kuralını atar. /reports/run hazırlığı tekrarlar; sayfa sayısı veya maliyet değişmişse ücret almadan 409 cost_estimate_mismatch döndürür. Yeni bir maliyet tahmini alın ve yeni bir Idempotency-Key ile yeniden başlatın. Mevcut URL’ler ve kuralları korunur.

GET/public-api/v1/diff-projects/{diff_project_id}/balance

Bakiyeyi ve kullanılabilir ödeme seçeneklerini kontrol eder.

POST/public-api/v1/diff-projects/{diff_project_id}/reports/cost

Maliyeti hesaplar. Bu adımda hesaptan ücret düşülmez.

{
  "scope": "all_urls",
  "force_recheck": false
}
POST/public-api/v1/diff-projects/{diff_project_id}/reports/run

Analizi başlatır. Idempotency-Key başlığı zorunludur.

Idempotency-Key: run-report-20260531-001
{
  "cost_estimate_id": "COST_ESTIMATE_ID",
  "payment_option": "auto",
  "scope": "all_urls",
  "force_recheck": false
}
GET/public-api/v1/diff-projects/{diff_project_id}/reports/runs/{run_id}

Çalıştırma durumunu kontrol eder: pending, progress, done, failed.

Zaman aşımı veya sunucu hatasından sonra GET /public-api/v1/diff-projects/{diff_project_id}/reports/runs ve GET /public-api/v1/diff-projects/{diff_project_id}/reports adreslerini kontrol edin: hatalı yanıt, analizin başlamadığı anlamına gelmez. Önceki isteğin sonucu belli olmadan paralel başlatma istekleri göndermeyin veya yeni bir idempotency anahtarı kullanmayın.

İçeriğe dön

API yöntemleri başvuru kılavuzu — Runs

İçindekilerden bir yöntem seçin. HTTP yöntemini, yolu, izinleri, zorunlu parametreleri ve istek gövdesini kontrol edin. schema, properties ve $ref içeren JSON blokları sözleşmeyi açıklar; bunları hazır istek gövdesi olarak göndermeyin. İstek örnekleri ve yanıt şemaları ayrı etiketlenmiştir.

Bu bölümdeki yöntemler

GET /public-api/v1/diff-projects/{id}/balance

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffBalanceResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Yanıtlar

200

Bakiye ve ödeme seçenekleri.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffBalanceResponse"
      }
    }
  }
}
default

Anahtar eksik veya geçersizse limit başlıkları IP başına başarısız denemeleri gösterir. Kimlik doğrulamasından sonra anahtar veya hesap limiti geçerlidir. Önceden engelleme veya sayaç kullanılamaması durumunda başlıklar bulunmayabilir. X-RateLimit-Reset saniye cinsinden Unix zamanıdır; 429 için Retry-After saniye cinsinden bekleme süresidir.

{
  "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"
      }
    }
  }
}

POST /public-api/v1/diff-projects/{id}/reports/cost

Maliyet tahmininden önce, projenin kayıtlı moduna göre yeni URL'ler ekler ve seçilen kuralı bunlara atar. Mevcut URL'ler ve kuralları korunur. Tahmin, kredi veya para ayırmaz ya da tahsil etmez.

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffCostRequest · DiffCostResponse · ErrorResponse · XID

Parametreler

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

İstek

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffCostRequest"
      }
    }
  }
}

Yanıtlar

200

İmzalı maliyet tahmini.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffCostResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

POST /public-api/v1/diff-projects/{id}/reports/run

Ödemeden önce URL'leri yeniden hazırlar. Nihai maliyet veya sayfa sayısı cost_estimate_id değerinden farklıysa ücret almadan 409 cost_estimate_mismatch döndürür. Yeni bir tahmin alın ve yeni bir Idempotency-Key ile yeniden deneyin.

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunRequest · DiffRunResponse · ErrorResponse · XID

Parametreler

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
Idempotency-Key (header)
{
  "schema": {
    "type": "string",
    "minLength": 1,
    "maxLength": 255
  }
}

İstek

{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRunRequest"
      }
    }
  }
}

Yanıtlar

200

Diff çalıştırması.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRunResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/reports/runs

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunListResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
limit (query)
{
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 10000,
    "default": 100
  }
}
offset (query)
{
  "schema": {
    "type": "integer",
    "minimum": 0,
    "default": 0
  }
}

Yanıtlar

200

Diff çalıştırmaları.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRunListResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

GET /public-api/v1/diff-projects/{id}/reports/runs/{run_id}

Parametreler

İlgili veri modelleri: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · DiffRunResponse · ErrorResponse · XID

id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}
run_id (path)
{
  "required": true,
  "schema": {
    "$ref": "#/components/schemas/XID"
  }
}

Yanıtlar

200

Diff çalıştırması.

{
  "headers": {
    "X-Request-ID": {
      "$ref": "#/components/headers/XRequestID"
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/DiffRunResponse"
      }
    }
  }
}
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"
      }
    }
  }
}

İçeriğe dön