Skip to content

Commit

Permalink
add frequency to apidocs
Browse files Browse the repository at this point in the history
  • Loading branch information
tedil committed Jan 2, 2025
1 parent 40796ab commit 9a70495
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/server/run/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ pub mod openapi {
StrucvarsGeneTranscriptEffects, StrucvarsTranscriptEffect,
};
use crate::common::GenomeRelease;
use crate::server::run::actix_server::frequencies::{
AutosomalResultEntry, FrequencyQuery, FrequencyResponse, FrequencyResultEntry,
GonosomalResultEntry, MitochondrialResultEntry,
};
use crate::server::run::actix_server::gene_txs::{
ExonAlignment, GenesTranscriptsListQuery, GenesTranscriptsListResponse, GenomeAlignment,
Strand, Transcript, TranscriptBiotype, TranscriptTag,
Expand All @@ -40,7 +44,9 @@ pub mod openapi {
Assembly, DataVersionEntry, SoftwareVersions, VersionsInfoResponse,
};

use super::actix_server::{gene_txs, seqvars_csq, strucvars_csq, versions, CustomError};
use super::actix_server::{
frequencies, gene_txs, seqvars_csq, strucvars_csq, versions, CustomError,
};

/// Utoipa-based `OpenAPI` generation helper.
#[derive(utoipa::OpenApi)]
Expand All @@ -50,7 +56,8 @@ pub mod openapi {
gene_txs::handle_with_openapi,
seqvars_csq::handle_with_openapi,
strucvars_csq::handle_with_openapi,
strucvars_csq::handle_with_openapi
strucvars_csq::handle_with_openapi,
frequencies::handle_with_openapi,
),
components(schemas(
Assembly,
Expand Down Expand Up @@ -83,6 +90,12 @@ pub mod openapi {
Transcript,
TranscriptBiotype,
TranscriptTag,
FrequencyQuery,
FrequencyResponse,
FrequencyResultEntry,
AutosomalResultEntry,
GonosomalResultEntry,
MitochondrialResultEntry,
))
)]
pub struct ApiDoc;
Expand Down

0 comments on commit 9a70495

Please sign in to comment.