mirror of
https://github.com/thecyberlearn/netcop-ai.git
synced 2026-08-18 07:52:59 +00:00
Features: - Email-based user authentication with token auth - Stripe Checkout integration for wallet top-ups - n8n workflow triggering with automatic fee deduction ($0.10) - Comprehensive transaction and usage logging - Django Admin interface for monitoring - Rate limiting and security middleware - Production-ready deployment configuration - Modular settings (dev/prod environments) - UUID primary keys for enhanced security - Comprehensive test coverage 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
13 lines
446 B
Python
13 lines
446 B
Python
from rest_framework import serializers
|
|
from .models import WorkflowUsage
|
|
|
|
|
|
class WorkflowUsageSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = WorkflowUsage
|
|
fields = ('id', 'workflow_name', 'workflow_url', 'fee_charged', 'status', 'created_at')
|
|
read_only_fields = ('id', 'created_at')
|
|
|
|
|
|
class TriggerWorkflowSerializer(serializers.Serializer):
|
|
data = serializers.JSONField(required=False, default=dict) |