diff --git a/spi/spi-stats/src/api/ci/stats_ci_conf_api.rs b/spi/spi-stats/src/api/ci/stats_ci_conf_api.rs index f1ffa4bc6..6d52f1b9a 100644 --- a/spi/spi-stats/src/api/ci/stats_ci_conf_api.rs +++ b/spi/spi-stats/src/api/ci/stats_ci_conf_api.rs @@ -151,6 +151,21 @@ impl StatsCiConfApi { TardisResp::ok(Void {}) } + /// Delete Fact Column Configuration + #[oai(path = "/fact/:fact_key/col/:fact_col_key/kind/:kind", method = "delete")] + async fn fact_col_kind_delete( + &self, + fact_key: Path, + fact_col_key: Path, + kind: Path, + rel_external_id: Query>, + ctx: TardisContextExtractor, + ) -> TardisApiResult { + let funs = crate::get_tardis_inst(); + stats_conf_serv::fact_col_delete(&fact_key.0, Some(fact_col_key.0.as_str()), rel_external_id.0, Some(kind.0), &funs, &ctx.0).await?; + TardisResp::ok(Void {}) + } + /// Delete All Column Configuration #[oai(path = "/fact/:fact_key/kind/:kind", method = "delete")] async fn fact_col_delete_by_kind(