Skip to content
Clone
350bd30
220 lines 10.6 KB Rust
use utoipa::OpenApi;
use crate::handler;
#[derive(OpenApi)]
#[openapi(
info(title = "gitdata git api", version = "1.0"),
paths(
handler::code_comments::list_code_comments::list_code_comments,
handler::code_comments::create_code_comment::create_code_comment,
handler::code_comments::modify::update_code_comment,
handler::code_comments::modify::delete_code_comment,
handler::code_comments::resolve_code_comment::resolve_code_comment,
handler::code_comments::resolve_code_comment::unresolve_code_comment,
handler::releases::list_releases::list_releases,
handler::releases::create_release::create_release,
handler::releases::get_release::get_release,
handler::releases::update_release::update_release,
handler::releases::delete_release::delete_release,
handler::analysis::code_activity::code_activity,
handler::analysis::contributors::contributors,
handler::analysis::languages::languages,
handler::analysis::languages_read::languages_read,
handler::archives::create::create_archive,
handler::archives::create_bundle::create_bundle,
handler::archives::download::get_archive,
handler::blame::blame,
handler::blobs::content::blob_content,
handler::blobs::list_lfs_pointers::list_lfs_pointers,
handler::blobs::metadata::blob_metadata,
handler::branches::create::create_branch,
handler::branches::delete::delete_branch,
handler::branches::get::get_branch,
handler::branches::list::list_branches,
handler::branches::rename::rename_branch,
handler::branches::set_default::set_default_branch,
handler::branch_protection::create_policy::create_policy,
handler::branch_protection::delete_policy::delete_policy,
handler::branch_protection::get_policy::get_policy,
handler::branch_protection::list_policies::list_policies,
handler::branch_protection::update_policy::update_policy,
handler::tag_protection::create_policy::create_policy,
handler::tag_protection::delete_policy::delete_policy,
handler::tag_protection::get_policy::get_policy,
handler::tag_protection::list_policies::list_policies,
handler::tag_protection::update_policy::update_policy,
handler::commits::get::get_commit,
handler::commits::is_ancestor::is_ancestor,
handler::commits::list::list_commits,
handler::commits::list_commit_statuses::list_commit_statuses,
handler::commits::rev_parse::rev_parse,
handler::commits::set_commit_status::set_commit_status,
handler::commits::stats::commit_stats,
handler::conflicts::detail::conflict_detail,
handler::conflicts::get_conflicts::get_conflicts,
handler::content::caller_signature::caller_signature,
handler::diffs::for_commit::diff_for_commit,
handler::diffs::range_diff::range_diff,
handler::diffs::get_diff::get_diff,
handler::diffs::raw::diff_raw,
handler::hooks::execute_script::execute_script,
handler::licenses::get_license,
handler::licenses::list_licenses,
handler::lfs::list_locks::list_locks,
handler::lfs::lock::lock,
handler::lfs::unlock::unlock,
handler::lfs::unlock_by_id::unlock_by_id,
handler::lfs::verify_locks::verify_locks,
handler::patches::generate::patch_generate,
handler::patches::parse::patch_parse,
handler::path_log::path_log,
handler::remotes::add::upsert_remote,
handler::remotes::list::list_remotes,
handler::remotes::clone_import::clone_import,
handler::remotes::fetch::fetch,
handler::remotes::push::push,
handler::remotes::remove::remove,
handler::repos::archive::archive_repo,
handler::repos::archive::unarchive_repo,
handler::repos::create::create_repo,
handler::repos::get::get_repo,
handler::repos::list::list_repos,
handler::repos::update::update_repo,
handler::signatures::verify_commit::verify_commit,
handler::signatures::verify_tag::verify_tag,
handler::stars::list_stargazers,
handler::stars::star_repo,
handler::stars::unstar_repo,
handler::submodules::list::submodule_list,
handler::submodules::resolve::submodule_resolve,
handler::tags::create::create_tag,
handler::tags::delete::delete_tag,
handler::tags::get::get_tag,
handler::tags::list::list_tags,
handler::topics::add_topic_to_repo,
handler::topics::create_topic,
handler::topics::get_topic,
handler::topics::list_repo_topics,
handler::topics::list_repos_by_topic,
handler::topics::list_topics,
handler::topics::remove_topic_from_repo,
handler::trees::read::get_tree,
handler::watches::list_watchers,
handler::watches::upsert_watch,
handler::whitelists::add_branch_whitelist,
handler::whitelists::add_tag_whitelist,
handler::whitelists::list_branch_whitelists,
handler::whitelists::list_tag_whitelists,
handler::whitelists::remove_branch_whitelist,
handler::whitelists::remove_tag_whitelist,
),
components(schemas(
export::pagination::PageQuery,
export::pagination::Page<crate::service::repos::RepoSummaryDto>,
export::pagination::Page<crate::service::branches::BranchDto>,
export::pagination::Page<crate::service::tags::TagDto>,
export::rest::NoData,
crate::service::hooks::HookEventKind,
models::common::watch_mode::WatchMode,
models::git::git_commit_status::CommitStatusState,
models::git::git_tags::TagType,
models::repo::repo_branch_protection_whitelists::WhitelistKind,
crate::lfs::types::LfsLock,
crate::lfs::types::LfsLockOwner,
crate::lfs::types::LfsLockListResponse,
crate::lfs::types::LfsVerifyLocksResponse,
crate::service::analysis::CodeActivityAuthorDto,
crate::service::analysis::CodeActivityDto,
crate::service::analysis::ContributorStatDto,
crate::service::analysis::LanguageStatDto,
crate::service::archives::ArchiveResultDto,
crate::service::blame::BlameRangeDto,
crate::service::blobs::BlobContentDto,
crate::service::blobs::BlobMetaDto,
crate::service::blobs::LfsPointerDto,
crate::service::blobs::RawDownloadDto,
crate::service::branches::BranchDto,
crate::service::branches::CreateBranchCmd,
crate::service::commits::CommitDto,
crate::service::protection::BranchPolicyDto,
crate::service::protection::CreateBranchPolicyCmd,
crate::service::protection::UpdateBranchPolicyCmd, crate::service::protection::BranchPolicyFlags,
crate::service::protection::TagPolicyDto,
crate::service::protection::CreateTagPolicyCmd,
crate::service::protection::UpdateTagPolicyCmd,
crate::service::commits::CommitStatusDto,
crate::service::commits::CommitStatusDtoState,
crate::service::commits::CommitsPageDto,
crate::service::commits::SetCommitStatusCmd,
crate::service::conflicts::ConflictDetailDto,
crate::service::conflicts::MergeStatusDto,
crate::service::content::FileEntryDto,
crate::service::content::ObjectKind,
crate::service::content::SignatureDto,
crate::service::content::WriteObjectResultDto,
crate::service::diffs::ChangedPathDto,
crate::service::diffs::ChangedPathDiffDto,
crate::service::diffs::DiffTreeRecordDto,
crate::service::hooks::ScriptOutputDto,
crate::service::licenses::LicenseDto,
crate::service::licenses::UpsertLicenseCmd,
crate::service::maintenance::FsckDto,
crate::service::maintenance::PruneResultDto,
crate::service::packs::IngestPackDto,
crate::service::packs::PackStatsDto,
crate::service::patches::AppliedPatchDto,
crate::service::patches::ParsedPatchDto,
crate::service::patches::PatchDto,
crate::service::path_log::PathLogEntryDto,
crate::service::refs::BranchInfoDto,
crate::service::refs::HeadInfoDto,
crate::service::refs::UpdateRefResultDto,
crate::service::remotes::RemoteDto,
crate::service::remotes::FetchResultDto,
crate::service::remotes::ImportResultDto,
crate::service::remotes::PushResultDto,
crate::service::remotes::RemoteAuthDto,
crate::service::repos::CreateRepoCmd,
crate::service::repos::RepoDto,
crate::service::repos::RepoMeDto,
crate::service::repos::RepoSummaryDto,
crate::service::repos::UpdateRepoCmd,
crate::service::signatures::VerifyResultDto,
crate::service::stars::RepoStarDto,
crate::service::stars::RepoStarResp,
crate::service::stars::StargazerDto,
crate::service::submodules::SubmoduleDto,
crate::service::tags::CreateTagCmd,
crate::service::tags::TagDto,
crate::service::topics::CreateTopicCmd,
crate::service::topics::TopicDto,
crate::service::topics::TopicRepoDto,
crate::service::trees::PathLastUpdated,
crate::service::watches::RepoWatchDto,
crate::service::watches::UpsertWatchCmd,
crate::service::watches::WatcherDto,
crate::service::whitelists::AddBranchWhitelistCmd,
crate::service::whitelists::AddTagWhitelistCmd,
crate::service::whitelists::BranchWhitelistDto,
crate::service::whitelists::TagWhitelistDto,
crate::handler::commits::is_ancestor::IsAncestorResponse,
crate::handler::commits::sync_commit::CommitSyncResponse,
crate::handler::content::caller_signature::CallerSignatureBody,
crate::handler::content::commit_object::CommitObjectBody,
crate::handler::content::write_blob::WriteBlobBody,
crate::handler::content::write_tree_from_files::WriteTreeBody,
crate::handler::diffs::get_diff::DiffView,
crate::handler::hooks::execute_script::HookExecBody,
crate::handler::lfs::cleanup_unreferenced::LfsCleanupResponse,
crate::handler::lfs::lock::LfsLockBody,
crate::handler::patches::apply::PatchApplyBody,
crate::handler::refs::is_object_in_ref::IsObjectInRefResponse,
crate::handler::remotes::add::RemoteAddBody,
crate::handler::remotes::clone_import::RemoteImportBody,
crate::handler::remotes::fetch::RemoteFetchBody,
crate::handler::remotes::push::RemotePushBody,
crate::handler::trees::read::TreeView,
))
)]
pub struct GitApiDoc;