hosting
GET /v1/sites/{siteId}/hosting/applications
List the one-click applications installable on a site's package.
Doğrulama
API açarını bearer token kimi göndərin. Açar sites.view icazəsinə malik olmalıdır; bu icazəsi olmayan açar 404 deyil, 403 xətası ilə rədd edilir.
Bu endpoint heç bir təşkilat ID-si tələb etmir. Sizin açarınız artıq aid olduğu təşkilatı müəyyən edir və cavab həmin təşkilat üçün məhdudlaşdırılır.
Sınaqdan keçir
Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/hosting/applications \
-H "Authorization: Bearer zdk_live_…"Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın
Təfərrüatlar
The applications available on this package, by name, read live from the vendor so the list cannot go stale in our copy (docs/62 §6g). These are application names — proper nouns like wordpress — so the client renders them as names and does not translate them. 404 for a site with no vendor package. Requires sites.view.
Parametrlər
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
siteId (path) | Uuid | Bəli | Site ID (UUIDv7). |
Cavab
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
data | SiteApplication[] | Bəli | — |
current | SiteApplicationInstall | Xeyr | The site's most recent install and its outcome, or null if none has ever been requested. The latest row rather than the latest in-flight one, so a finished install still… |
installable | boolean | Xeyr | Whether an install on this site could actually succeed. false means the site's hosting plan has no one-click installer at all, and every entry in data would be refused. ⛔… |
unavailable_reason | string | Xeyr | Stable machine identifier for why installable is false; empty when it is true. An i18n key suffix the client localises — never display text, and never a vendor string.… |
Bu son nöqtənin qaytara biləcəyi xətalar
401 · 403 · 404 · 429 · 503