feat(api): public read API (PublicView projection, paginated list + get, OpenAPI)

This commit is contained in:
2026-06-02 13:48:17 +02:00
parent b948cae269
commit 3c4ada202f
6 changed files with 316 additions and 3 deletions
+8 -3
View File
@@ -1,12 +1,17 @@
use axum::{Json, Router, extract::State, routing::get};
use utoipa::OpenApi;
use crate::{AppState, health};
use crate::{AppState, health, public};
#[derive(OpenApi)]
#[openapi(
paths(health::live, health::ready),
components(schemas(health::Live, health::Ready)),
paths(health::live, health::ready, public::list_objects, public::get_object),
components(schemas(
health::Live,
health::Ready,
public::PublicView,
public::PublicObjectPage
)),
info(title = "Collection Management System", version = "0.0.0")
)]
struct ApiDoc;