Update views.py
This commit is contained in:
@@ -1019,16 +1019,6 @@ class AnalyticsView(APIView):
|
||||
tags=["commerce", "analytics"],
|
||||
summary="Generate custom analytics report",
|
||||
description="Generate custom analytics based on specified modules and parameters",
|
||||
request={
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"modules": {"type": "array", "items": {"type": "string", "enum": ["sales", "products", "customers", "shipping", "reviews"]}},
|
||||
"start_date": {"type": "string", "format": "date-time"},
|
||||
"end_date": {"type": "string", "format": "date-time"},
|
||||
"period": {"type": "string", "enum": ["daily", "weekly", "monthly"]},
|
||||
"options": {"type": "object"}
|
||||
}
|
||||
}
|
||||
)
|
||||
def post(self, request):
|
||||
"""Generate custom analytics report based on specified modules"""
|
||||
|
||||
Reference in New Issue
Block a user