Files
chatballs/apps/backend/hub_platform/api
AndreyandClaude Opus 4.8 bd9f77cc07 ♻️ refactor(api): adopt DRF foundation and migrate products module
- DRF defaults: SessionAuthentication, IsAuthenticated, JSON-only render/parse
- shared api package: IsOwner permission (audits denials) and an exception
  handler that flattens every error body to the {detail} SPA contract
- products views rewritten as APIView with permission_classes; manual JSON
  parsing and auth checks removed (DRF parser returns 400 on bad JSON)
- response shapes and status codes preserved; product tests use DRF APIClient

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 17:50:40 +03:00
..