winofy-backend/apps/core/schema.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

15 lines
479 B
Python

from drf_spectacular.openapi import AutoSchema
class TaggedAutoSchema(AutoSchema):
"""
Groups swagger operations by a `schema_tags` list set on the view, instead of
drf-spectacular's default (first URL path segment — which is "v1" for every
endpoint here, since everything lives under /api/v1/).
"""
def get_tags(self):
tags = getattr(self.view, 'schema_tags', None)
if tags:
return tags
return super().get_tags()