Ana içeriğe geç

Node ID'sine Göre Tüm Distributor'ları Getir

Pagination desteği ile bir node ile ilişkili tüm distributor'ları getirin.

Endpoint: GET /api/v1/integration/distributors/nodes/{node_id}/all

Kimlik Doğrulama: Gerekli (Bearer token)

Gerekli Header'lar:

Authorization: Bearer <access_token>
X-Target-Server: integration

Yol Parametreleri

ParametreTipGerekliAçıklama
node_idstring (UUID)EvetNode ID

Query Parametreleri

ParametreTipGerekliAçıklama
pageintegerHayırSayfa numarası (varsayılan: 1)
per_pageintegerHayırSayfa başına öğe sayısı (varsayılan: 10)

Yanıt

Durum: 200 OK

Pagination ile distributor'ların listesini döndürür.

{
"distributors": [
{
"id": "39e8003c-6342-4fd3-97a1-3f2a7b437d0a",
"node_id": "e40efce4-38a3-46c4-a202-e8db95d0409c",
"meta": {
"host": "https://example.com",
"path": "/webhook",
"method": "GET",
"authentication": {
"type": 1,
"username": "user",
"password": "pass"
}
},
"created_at": "2025-12-23T23:16:10.419732Z",
"updated_at": "2025-12-23T23:16:10.419732Z"
},
{
"id": "084a5159-1546-4ade-a7ba-956e0234a417",
"node_id": "e40efce4-38a3-46c4-a202-e8db95d0409c",
"meta": {
"host": "http://localhost:3453",
"path": "/v1/tokens/%s/distribution",
"method": "GET",
"authentication": {
"type": 2,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnRlZ3JhdGlvbklEIjoidGVzdC1pbnRlZ3JhdGlvbi1pZCJ9.rwshV1zF5nvW-cnN50Isa9xbJz3ChB6uZ9HsCLS3DiI"
}
},
"created_at": "2025-12-11T12:04:39.504428Z",
"updated_at": "2025-12-13T15:00:00.086405Z"
}
],
"total": 2,
"page": 1,
"per_page": 10
}

Örnek cURL İsteği

curl -X GET 'https://<base-url>/api/v1/integration/distributors/nodes/e40efce4-38a3-46c4-a202-e8db95d0409c/all?page=1&per_page=10' \
-H "Authorization: Bearer <access_token>" \
-H "X-Target-Server: integration"