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:
@@ -352,12 +352,32 @@ SPECTACULAR_SETTINGS = {
|
||||
# Tag configuration - prevent auto-generation and use explicit tags
|
||||
'TAGS': [
|
||||
{'name': 'Authentication', 'description': 'User authentication and registration'},
|
||||
{'name': 'Account', 'description': 'Account settings, team, and usage analytics'},
|
||||
{'name': 'Integration', 'description': 'Site integrations and sync'},
|
||||
{'name': 'System', 'description': 'Settings, prompts, and integrations'},
|
||||
{'name': 'Admin Billing', 'description': 'Admin-only billing management'},
|
||||
{'name': 'Billing', 'description': 'Credits, usage, and transactions'},
|
||||
{'name': 'Planner', 'description': 'Keywords, clusters, and content ideas'},
|
||||
{'name': 'Writer', 'description': 'Tasks, content, and images'},
|
||||
{'name': 'System', 'description': 'Settings, prompts, and integrations'},
|
||||
{'name': 'Billing', 'description': 'Credits, usage, and transactions'},
|
||||
{'name': 'Automation', 'description': 'Automation configuration and runs'},
|
||||
{'name': 'Linker', 'description': 'Internal linking operations'},
|
||||
{'name': 'Optimizer', 'description': 'Content optimization operations'},
|
||||
{'name': 'Publisher', 'description': 'Publishing records and deployments'},
|
||||
],
|
||||
'TAGS_ORDER': [
|
||||
'Authentication',
|
||||
'Account',
|
||||
'Integration',
|
||||
'System',
|
||||
'Admin Billing',
|
||||
'Billing',
|
||||
'Planner',
|
||||
'Writer',
|
||||
'Automation',
|
||||
'Linker',
|
||||
'Optimizer',
|
||||
'Publisher',
|
||||
],
|
||||
'TAGS_ORDER': ['Authentication', 'Planner', 'Writer', 'System', 'Billing'],
|
||||
# Postprocessing hook to filter out auto-generated tags
|
||||
'POSTPROCESSING_HOOKS': ['igny8_core.api.schema_extensions.postprocess_schema_filter_tags'],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user