From f39a602be37b0581e6d9df1a405ca58edb3df246 Mon Sep 17 00:00:00 2001 From: Sychic <47618543+Sychic@users.noreply.github.com> Date: Thu, 20 Aug 2026 11:58:05 -0400 Subject: [PATCH] docs(labrinth): misc fixes (#7228) * docs(labrinth): fix project id param for dependencies route * docs(labrinth): add missing params --- apps/labrinth/src/routes/v2/projects.rs | 2 +- apps/labrinth/src/routes/v3/notifications.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/labrinth/src/routes/v2/projects.rs b/apps/labrinth/src/routes/v2/projects.rs index 1adf08f1c2..79f6888084 100644 --- a/apps/labrinth/src/routes/v2/projects.rs +++ b/apps/labrinth/src/routes/v2/projects.rs @@ -376,7 +376,7 @@ struct DependencyInfo { get, operation_id = "getDependencies", params( - ("id" = String, Path, description = "The ID or slug of the project") + ("project_id" = String, Path, description = "The ID or slug of the project") ), responses( (status = 200, description = "Expected response to a valid request", body = DependencyInfo), diff --git a/apps/labrinth/src/routes/v3/notifications.rs b/apps/labrinth/src/routes/v3/notifications.rs index 1daa7acf3e..90ca9829b4 100644 --- a/apps/labrinth/src/routes/v3/notifications.rs +++ b/apps/labrinth/src/routes/v3/notifications.rs @@ -86,7 +86,7 @@ pub async fn notifications_get( Ok(HttpResponse::Ok().json(notifications)) } -#[utoipa::path(tag = "notifications", responses((status = OK)))] +#[utoipa::path(tag = "notifications", params(("id" = NotificationId, Path, description = "Notification id",)), responses((status = OK)))] #[get("/notification/{id}")] pub async fn notification_get_route( req: HttpRequest, @@ -137,7 +137,7 @@ pub async fn notification_get( } } -#[utoipa::path(tag = "notifications", responses((status = NO_CONTENT)))] +#[utoipa::path(tag = "notifications", params(("id" = NotificationId, Path, description = "Notification id",)), responses((status = NO_CONTENT)))] #[patch("/notification/{id}")] pub async fn notification_read_route( req: HttpRequest, @@ -208,7 +208,7 @@ pub async fn notification_read( } } -#[utoipa::path(tag = "notifications", responses((status = NO_CONTENT)))] +#[utoipa::path(tag = "notifications", params(("id" = NotificationId, Path, description = "Notification id",)), responses((status = NO_CONTENT)))] #[delete("/notification/{id}")] pub async fn notification_delete_route( req: HttpRequest,