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.
30 lines
891 B
Python
30 lines
891 B
Python
from django.urls import path
|
|
|
|
from .views import (
|
|
BonusView,
|
|
CatalogSyncView,
|
|
IntegrationHealthView,
|
|
ManualSyncView,
|
|
OrderAckView,
|
|
OrderStatusView,
|
|
PendingOrdersView,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path("health/", IntegrationHealthView.as_view(), name="integration-health"),
|
|
path("catalog/sync/", CatalogSyncView.as_view(), name="integration-catalog-sync"),
|
|
path("orders/pending/", PendingOrdersView.as_view(), name="integration-pending-orders"),
|
|
path(
|
|
"orders/<str:number>/status/",
|
|
OrderStatusView.as_view(),
|
|
name="integration-order-status",
|
|
),
|
|
path(
|
|
"orders/<str:number>/ack/",
|
|
OrderAckView.as_view(),
|
|
name="integration-order-ack",
|
|
),
|
|
path("customers/bonus/", BonusView.as_view(), name="integration-bonus"),
|
|
path("sync/run/", ManualSyncView.as_view(), name="integration-manual-sync"),
|
|
]
|