#56 API: Query Audit Logs

open high Created 2025-11-27 07:15 · Updated 2025-11-27 07:15

Description

Edit
Implement endpoint to query audit logs with filtering. Endpoint: GET /api/v1/audit/logs Query Parameters: - user_id: Filter by user (optional) - action_type: Filter by action (optional) - resource_type: Filter by resource type (optional) - from_date: Start date (optional) - to_date: End date (optional) - page: Page number (default: 1) - per_page: Results per page (default: 50, max: 200) Response: Paginated list of audit log entries with metadata Required Permissions: tenant_admin or system_admin Implementation Requirements: - Support multiple filter combinations - Include user details in response - Sort by timestamp descending - Return total count for pagination - Index optimization for common queries With ultra attention to details and correctness. Before closing: write comment summarizing implementation with screenshot.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...