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,