args_api/endpoint/migration/github/
get_github_app_install_url.rs1use serde::{Deserialize, Serialize};
2
3use crate::{endpoint::Endpoint, resource::migration::GitHubAppInstallUrlResource};
4
5pub struct GetGitHubAppInstallUrl;
6
7impl Endpoint for GetGitHubAppInstallUrl {
8 const PATH: &'static str = "/migration/github/install-url";
9 const METHOD: http::Method = http::Method::GET;
10
11 type Request = GetGitHubAppInstallUrlRequest;
12 type Response = GetGitHubAppInstallUrlResponse;
13}
14
15#[derive(ApiRequest, Debug, Serialize, Deserialize)]
16pub struct GetGitHubAppInstallUrlRequest {
17 pub action: String,
18}
19
20pub type GetGitHubAppInstallUrlResponse = GitHubAppInstallUrlResource;