hosting
POST /v1/webhooks/git/{provider}/{repoId}
Ingest a push from a customer's git provider and deploy it.
Doğrulama
Bu nöqtə açıqdır. O, heç bir etimadnamə və təşkilat tələb etmir — bu, öz marketinq saytımızın və süni intellekt cavab mühərriklərimizin oxuduğu hissədir.
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 POST https://api.zinndigital.com/v1/webhooks/git/{provider}/{repoId}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
Unauthenticated by design — the git provider holds no Zinn® credential, so the signature over the raw body is the authentication. A verified push on the branch a repository is wired to triggers a deploy of that site. ⛔ The repoId in the path identifies which connection's secret verifies the signature; it is not a permission. A request whose signature does not verify is refused before anything is read from it.
Parametrlər
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
provider (path) | string<github, gitlab, bitbucket> | Bəli | The git host that sent the push. |
repoId (path) | string | Bəli | The connected repository this push belongs to. |
Cavab
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
status | string<handled, ignored, duplicate> | Bəli | handled — acted on. ignored — a valid event of a type Zinn® does not consume. duplicate — already processed; Stripe may stop redelivering. |
Bu son nöqtənin qaytara biləcəyi xətalar
400 · 404