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:
Andrew Phillips
2025-08-13 13:20:57 -03:00
parent 8bd918129c
commit b07c9df812
4 changed files with 173 additions and 72 deletions

View File

@@ -12,13 +12,14 @@ use crate::meta_plugin::MetaPluginType;
get,
path = "/api/status",
responses(
(status = 200, description = "Successfully retrieved status information", body = ApiResponse<StatusInfo>),
(status = 401, description = "Unauthorized"),
(status = 500, description = "Internal server error")
(status = 200, description = "Successfully retrieved status information including database path, data directory, and supported plugins", body = ApiResponse<StatusInfo>),
(status = 401, description = "Unauthorized - Invalid or missing authentication credentials"),
(status = 500, description = "Internal server error - Failed to retrieve status information")
),
security(
("bearerAuth" = [])
)
),
tag = "status"
)]
pub async fn handle_status(
State(state): State<AppState>,