mirror of
https://github.com/modrinth/code.git
synced 2026-08-27 10:04:52 +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,
|
get,
|
||||||
operation_id = "getDependencies",
|
operation_id = "getDependencies",
|
||||||
params(
|
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(
|
responses(
|
||||||
(status = 200, description = "Expected response to a valid request", body = DependencyInfo),
|
(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))
|
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}")]
|
#[get("/notification/{id}")]
|
||||||
pub async fn notification_get_route(
|
pub async fn notification_get_route(
|
||||||
req: HttpRequest,
|
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}")]
|
#[patch("/notification/{id}")]
|
||||||
pub async fn notification_read_route(
|
pub async fn notification_read_route(
|
||||||
req: HttpRequest,
|
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}")]
|
#[delete("/notification/{id}")]
|
||||||
pub async fn notification_delete_route(
|
pub async fn notification_delete_route(
|
||||||
req: HttpRequest,
|
req: HttpRequest,
|
||||||
|
|||||||
Reference in New Issue
Block a user