Commit Graph
4 Commits
Author SHA1 Message Date
apuc f6c61ff8da Document the API in Swagger with tags, parameters and examples
- Add OpenAPI tags for the seven API groups and a full description
  (auth, error envelope, pagination, idempotency) in SPECTACULAR_SETTINGS
- Annotate every endpoint with @extend_schema: summary, description,
  query parameters, request/response examples and error responses
- Add shared schema helpers in apps/common/schema.py: ErrorEnvelope,
  error_responses(), pagination and catalog filter parameters
- Document JWT login and token refresh that simplejwt ships without docs
- Add ReDoc at /api/redoc/ next to Swagger UI at /api/docs/
- Add export_api_docs management command rendering the schema into a
  standalone HTML reference (no CDN) and commit docs/api-reference.html
- Describe the documentation entry points in docs/architecture.md

Schema validates cleanly: 41 operations, 0 warnings.
2026-11-22 22:06:21 +03:00
apuc 756f40353b Add Django backend, 1C integration, deploy config and API docs
Backend (Django 4.2 + DRF):
- accounts: phone OTP login, JWT, profile, addresses
- catalog: categories, products, images, filters, search, hits/new/related
- orders: creation with Idempotency-Key, stock reservation, status history, cancel
- loyalty: bonus accounts, promo codes, gift certificates
- payments: payment records and YooKassa webhook handling
- content: static pages, banners, site settings
- integration: 1C exchange (catalog sync, order push via outbox, statuses, bonuses)
- common: error envelope, pagination, request-id, integration auth, admin dashboard

Infrastructure: Dockerfile, docker-compose (Postgres, Redis, Celery worker/beat, Nginx),
requirements split by environment, OpenAPI contracts for site and 1C, architecture doc.

Tests: 22 pytest cases covering catalog, orders, idempotency, OTP, integration.
2026-11-22 21:54:16 +03:00
apuc 5f8d37357d Update README.md 2026-06-29 18:42:36 +03:00
apuc edfc2fc8e1 Add README.md 2026-06-29 18:33:35 +03:00