diff options
| author | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-04 10:52:15 +0300 |
|---|---|---|
| committer | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-05 21:52:32 +0300 |
| commit | c960586ef238089a2b4722ce32b12497e8b77bb9 (patch) | |
| tree | 88b8cb0ca9e1fb4f4eedc5acbe7e7c3aecf77762 /src | |
| parent | f063893efa75dd58a9ef125bbbc4e64f84721dd4 (diff) | |
| download | genenetwork4-c960586ef238089a2b4722ce32b12497e8b77bb9.tar.gz | |
* src/routes/correlation.rs (correlation): rename endpoint to /compute/correlation.
API version prefixes are deployment concerns -- the v2 lives in the main URL (site/v2/compute/correlation) -- so code paths carry functional names only.
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/correlation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/correlation.rs b/src/routes/correlation.rs index df10c22..a26ff34 100644 --- a/src/routes/correlation.rs +++ b/src/routes/correlation.rs @@ -31,7 +31,7 @@ pub struct CorrelationHit { pub correlation: f64, } -#[utoipa::path(post, path = "/api/v2/correlation", +#[utoipa::path(post, path = "/compute/correlation", summary = "Compute a sample correlation (STUB: canned data)", description = "Phase A target per topics/gn4/gn4-correlation.gmi. \ Currently returns canned data wrapped in the descriptive envelope \ @@ -61,7 +61,7 @@ pub async fn correlation( correlation: 0.87, }, ]) - .with_next("/api/v2/correlation", "Correlate another trait") + .with_next("/compute/correlation", "Correlate another trait") .with_next("/species", "Narrow by species"), )) } |
