feat: enhance HTTP logging and API responses with content metadata
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
@@ -12,6 +12,14 @@ use utoipa_swagger_ui::SwaggerUi;
|
||||
|
||||
#[derive(OpenApi)]
|
||||
#[openapi(
|
||||
info(
|
||||
title = "Keep API",
|
||||
version = "0.1.0",
|
||||
description = "REST API for Keep - a tool to manage temporary files with automatic compression and metadata generation",
|
||||
contact(
|
||||
name = "Keep Project",
|
||||
)
|
||||
),
|
||||
paths(
|
||||
status::handle_status,
|
||||
item::handle_list_items,
|
||||
@@ -27,11 +35,19 @@ use utoipa_swagger_ui::SwaggerUi;
|
||||
schemas(
|
||||
crate::common::status::StatusInfo,
|
||||
crate::modes::server::common::ItemInfo,
|
||||
crate::modes::server::common::ItemContentInfo,
|
||||
),
|
||||
security_schemes(
|
||||
("bearerAuth" = ("http", "bearer")),
|
||||
("basicAuth" = ("http", "basic"))
|
||||
)
|
||||
),
|
||||
tags(
|
||||
(name = "status", description = "Status API endpoints"),
|
||||
(name = "item", description = "Item management API endpoints")
|
||||
(name = "status", description = "System status and health check endpoints"),
|
||||
(name = "item", description = "Item management endpoints for storing, retrieving, and managing content with metadata")
|
||||
),
|
||||
servers(
|
||||
(url = "/", description = "Local server")
|
||||
)
|
||||
)]
|
||||
struct ApiDoc;
|
||||
|
||||
Reference in New Issue
Block a user