Skip to content

Commit 96b1210

Browse files
authored
ref(api): Change endpoint to /version (#340)
1 parent 83dd777 commit 96b1210

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

etl-api/src/routes/pipelines.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ pub async fn rollback_table_state(
10601060
),
10611061
tag = "Pipelines"
10621062
)]
1063-
#[post("/pipelines/{pipeline_id}/update-version")]
1063+
#[post("/pipelines/{pipeline_id}/version")]
10641064
pub async fn update_pipeline_version(
10651065
req: HttpRequest,
10661066
pool: Data<PgPool>,

etl-api/tests/support/test_app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ impl TestApp {
421421
update_request: &UpdatePipelineVersionRequest,
422422
) -> reqwest::Response {
423423
self.post_authenticated(format!(
424-
"{}/v1/pipelines/{pipeline_id}/update-version",
424+
"{}/v1/pipelines/{pipeline_id}/version",
425425
&self.address
426426
))
427427
.header("tenant_id", tenant_id)

0 commit comments

Comments
 (0)