Skip to main content

args_api/endpoint/webhook/
delete_webhook.rs

1use serde::{Deserialize, Serialize};
2
3use crate::endpoint::Endpoint;
4
5pub struct DeleteWebhook;
6
7impl Endpoint for DeleteWebhook {
8    const PATH: &'static str = "/repository/{owner}/{repo}/webhook/{webhook_id}";
9    const METHOD: http::Method = http::Method::DELETE;
10
11    type Request = DeleteWebhookRequest;
12    type Response = DeleteWebhookResponse;
13}
14
15#[derive(ApiRequest, Debug, Serialize, Deserialize)]
16pub struct DeleteWebhookRequest {}
17
18pub type DeleteWebhookResponse = ();