Docs / Raw

Feature Parity

Sourced from docs/admin/feature-parity.md

Edit on GitHub

Admin Feature Parity Matrix

This document inventories the current admin/backend endpoints, compares them to the admin panel's expectations, and tracks implementation status.

Backend API Structure

The backend API is located in services/api-gateway/app/api/. Key admin-related modules:

  • auth.py - Authentication endpoints (/api/auth/*)
  • admin_panel.py - Admin panel management (/api/admin/panel/*)
  • admin_kb.py - Knowledge base admin (/api/admin/kb/*)
  • admin_cache.py - Cache management (/api/admin/cache/*)
  • admin_feature_flags.py - Feature flags (/api/admin/feature-flags/*)
  • users.py - User management (/api/users/*)

Endpoint Inventory

Authentication (/api/auth)

EndpointMethodStatusDescription
/api/auth/registerPOST✅ ImplementedUser registration
/api/auth/loginPOST✅ ImplementedUser login, returns JWT tokens
/api/auth/refreshPOST✅ ImplementedRefresh access token
/api/auth/logoutPOST✅ ImplementedLogout and revoke tokens
/api/auth/meGET✅ ImplementedGet current user info

Admin Panel (/api/admin/panel)

EndpointMethodStatusDescription
/api/admin/panel/summaryGET✅ ImplementedDashboard metrics summary
/api/admin/panel/websocket-statusGET✅ ImplementedWebSocket connection status
/api/admin/panel/usersGET✅ ImplementedList users with pagination
/api/admin/panel/users/{id}GET✅ ImplementedGet user details
/api/admin/panel/users/{id}PUT✅ ImplementedUpdate user
/api/admin/panel/users/{id}DELETE✅ ImplementedDelete user
/api/admin/panel/users/{id}/role-historyGET✅ ImplementedUser role change history
/api/admin/panel/users/{id}/lock-reasonsGET✅ ImplementedAccount lock reasons
/api/admin/panel/metricsGET✅ ImplementedSystem metrics
/api/admin/panel/audit-logsGET✅ ImplementedAudit log entries
/api/admin/panel/audit-logs/exportGET✅ ImplementedExport audit logs as CSV

Knowledge Base Admin (/api/admin/kb)

EndpointMethodStatusDescription
/api/admin/kb/documentsGET✅ ImplementedList KB documents
/api/admin/kb/documentsPOST✅ ImplementedUpload document
/api/admin/kb/documents/{id}GET✅ ImplementedGet document details
/api/admin/kb/documents/{id}DELETE✅ ImplementedDelete document
/api/admin/kb/jobsGET⚠️ PartialIndexing job status (via document status)

Cache Management (/api/admin/cache)

EndpointMethodStatusDescription
/api/admin/cache/statsGET✅ ImplementedCache statistics
/api/admin/cache/clearPOST✅ ImplementedClear cache
/api/admin/cache/invalidatePOST✅ ImplementedInvalidate cache patterns

Feature Flags (/api/admin/feature-flags)

EndpointMethodStatusDescription
/api/admin/feature-flagsGET✅ ImplementedList all flags
/api/admin/feature-flags/{name}GET✅ ImplementedGet flag details
/api/admin/feature-flagsPOST✅ ImplementedCreate flag
/api/admin/feature-flags/{name}PATCH✅ ImplementedUpdate flag
/api/admin/feature-flags/{name}DELETE✅ ImplementedDelete flag
/api/admin/feature-flags/{name}/togglePOST✅ ImplementedToggle flag

User Management (/api/users)

EndpointMethodStatusDescription
/api/users/meGET✅ ImplementedGet current user
/api/users/mePUT✅ ImplementedUpdate current user
/api/users/me/change-passwordPOST✅ ImplementedChange password
/api/users/meDELETE✅ ImplementedDelete account
/api/usersGET✅ ImplementedList users (admin)
/api/users/{id}GET✅ ImplementedGet user by ID
/api/users/{id}PATCH✅ ImplementedUpdate user
/api/users/{id}/activatePUT✅ ImplementedActivate user
/api/users/{id}/deactivatePUT✅ ImplementedDeactivate user
/api/users/{id}/promote-adminPUT✅ ImplementedPromote to admin
/api/users/{id}/revoke-adminPUT✅ ImplementedRevoke admin

Frontend-Backend Alignment

Admin Panel Pages

PageBackend SupportNotes
Login✅ FullAuth endpoints complete
Dashboard✅ FullSummary, metrics, health endpoints available
Users✅ FullCRUD, role history, lock reasons, pagination
Knowledge Base✅ FullDocument CRUD, audit trails
Analytics✅ FullMetrics and audit log export
System✅ FullFeature flags, cache management

Known Gaps

  1. KB Indexing Jobs - The /api/admin/kb/jobs endpoint is not fully implemented as a separate route. Job status is tracked per-document.

  2. Analytics Trends - Specific analytics trend endpoints (/api/admin/analytics/trends) are not implemented; analytics data comes from the audit logs.

Role-Based Access Control

The admin panel supports three roles:

RoleAccess Level
viewerRead-only access to dashboard, users, KB
adminFull CRUD on users and KB, metrics access
superadminAll admin permissions plus system config

Recent Updates

  • PR 106-122: Added admin roles, audit logging, pagination, rate limiting
  • PR 107: WebSocket auth now validates user active status
  • PR 109: User pagination with offset/limit support
  • PR 122: Admin audit log service for privileged actions

Last updated: 2025-11-27

Beginning of guide
End of guide