winofy-backend/apps/orders/urls.py
Ali Asadi 52adc732fa Initial Winofy backend: marketplace core (no payment integration)
Django 6 + DRF resource server against the Gooyal accounts OAuth2 service,
matching the Winsoo ecosystem's conventions. Covers locations, stores,
catalog, cart, checkout/orders (with the multi-store-cart split and the
status stepper), reviews, and notifications, plus a demo-data seed command.

Payment integration (wallet debits, online gateway, seller payouts) is
intentionally left out here — see feature/payment.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-10 14:03:15 +03:30

27 lines
887 B
Python

from django.urls import path
from rest_framework.routers import DefaultRouter
from .views import (
CartItemView,
CartView,
CheckoutView,
NotificationViewSet,
OrderGroupViewSet,
OrderViewSet,
SellerOrderViewSet,
)
app_name = "orders"
router = DefaultRouter()
router.register('order-groups', OrderGroupViewSet, basename='order-group')
router.register('orders', OrderViewSet, basename='order')
router.register('seller/orders', SellerOrderViewSet, basename='seller-order')
router.register('notifications', NotificationViewSet, basename='notification')
urlpatterns = router.urls + [
path('checkout/', CheckoutView.as_view(), name='checkout'),
path('cart/', CartView.as_view(), name='cart'),
path('cart/items/', CartItemView.as_view(), name='cart-items'),
path('cart/items/<uuid:item_uuid>/', CartItemView.as_view(), name='cart-item-detail'),
]