Enhance API structure and documentation: Added new tags for Account, Integration, Automation, Linker, Optimizer, and Publisher; updated billing endpoints for admin and customer; improved API reference documentation; fixed endpoint paths in frontend services.
This commit is contained in:
@@ -9,6 +9,7 @@ from rest_framework.permissions import IsAuthenticated
|
||||
from django.http import HttpResponse
|
||||
from django.shortcuts import get_object_or_404
|
||||
from django.db import models
|
||||
from drf_spectacular.utils import extend_schema, extend_schema_view
|
||||
|
||||
from .models import (
|
||||
Invoice,
|
||||
@@ -366,6 +367,14 @@ class CreditTransactionViewSet(viewsets.ViewSet):
|
||||
})
|
||||
|
||||
|
||||
@extend_schema_view(
|
||||
invoices=extend_schema(tags=['Admin Billing']),
|
||||
payments=extend_schema(tags=['Admin Billing']),
|
||||
pending_payments=extend_schema(tags=['Admin Billing']),
|
||||
approve_payment=extend_schema(tags=['Admin Billing']),
|
||||
reject_payment=extend_schema(tags=['Admin Billing']),
|
||||
stats=extend_schema(tags=['Admin Billing']),
|
||||
)
|
||||
class AdminBillingViewSet(viewsets.ViewSet):
|
||||
"""Admin billing management"""
|
||||
permission_classes = [IsAuthenticated]
|
||||
|
||||
Reference in New Issue
Block a user