Samir Boulahtit
22c4937779
feat: add proper Pydantic response_model to all stats endpoints
- Create comprehensive stats schemas in models/schema/stats.py:
- ImportStatsResponse, UserStatsResponse, ProductStatsResponse
- PlatformStatsResponse, AdminDashboardResponse
- VendorDashboardStatsResponse with nested models
- VendorAnalyticsResponse, CodeQualityDashboardStatsResponse
- Move DashboardStatsResponse from code_quality.py to schema file
- Fix get_vendor_statistics() to return pending_vendors field
- Fix get_vendor_stats() to return flat structure matching schema
- Add response_model to all stats endpoints:
- GET /admin/dashboard -> AdminDashboardResponse
- GET /admin/dashboard/stats/platform -> PlatformStatsResponse
- GET /admin/marketplace-import-jobs/stats -> ImportStatsResponse
- GET /vendor/dashboard/stats -> VendorDashboardStatsResponse
- GET /vendor/analytics -> VendorAnalyticsResponse
- Enhance API-001 architecture rule with detailed guidance
- Add SVC-007 rule for service/schema compatibility
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 17:29:35 +01:00
..
2025-12-11 17:29:35 +01:00
2025-12-01 21:51:07 +01:00
2025-12-04 22:24:45 +01:00
2025-12-03 23:01:26 +01:00
2025-12-11 17:29:35 +01:00
2025-12-11 17:29:13 +01:00
2025-12-07 18:17:30 +01:00
2025-12-11 17:29:13 +01:00
2025-09-09 21:27:58 +02:00