docs(labrinth): misc fixes (#7228)

* docs(labrinth): fix project id param for dependencies route

* docs(labrinth): add missing params
This commit is contained in:
Sychic
2026-08-20 15:58:05 +00:00
committed by GitHub
parent 3e07267e10
commit f39a602be3
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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),
+3 -3
View File
@@ -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,