mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
docs(labrinth): misc fixes (#7228)
* docs(labrinth): fix project id param for dependencies route * docs(labrinth): add missing params
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user