hosting
POST /v1/webhooks/git/{provider}/{repoId}
Ingest a push from a customer's git provider and deploy it.
تصدیقهویت
دا پای ټکی عامه دی. دا هېڅ اعتبار او هېڅ سازمان ته اړتیا نه لري - دا هغه څه دي چې زموږ خپله د بازار موندنې پاڼه او د مصنوعي ځيرکتیا د ځواب انجنونه یې لولي.
دا پای نقطه د سازمان هېڅ آی ډي نه اخلي. ستاسو کیلي مخکې تر مخکې هغه سازمان په ګوته کوي چې پورې اړه لري، او ځواب ورته محدود دی.
هڅه وکړئ
د انګلیسي په زاوي پنسونو کې هرڅه د خپلو ارزښتونو سره بدل کړئ، او د کلي ځای لرونکی ستاسو د ډشبورډ د کلي سره.
curl -X POST https://api.zinndigital.com/v1/webhooks/git/{provider}/{repoId}ننوتي یاست؟ ستاسو په ډشبورډ کې د API کنسول ستاسو د اصلي سازمان ID او ستاسو خپله کیلي ډکوي، او غوښتنه د ژوندی API په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د API په کنسول کې پرانیزئ
تفصیلات
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.
پارامترونه
| نوم | ډول | اړین | دا څه شی دی |
|---|---|---|---|
provider (path) | string<github, gitlab, bitbucket> | هو | The git host that sent the push. |
repoId (path) | string | هو | The connected repository this push belongs to. |
ځواب
| نوم | ډول | اړین | دا څه شی دی |
|---|---|---|---|
status | string<handled, ignored, duplicate> | هو | handled — acted on. ignored — a valid event of a type Zinn® does not consume. duplicate — already processed; Stripe may stop redelivering. |
تېروتنې چې دا پای ټکی یې بیرته راګرځولی شي
400 · 404