mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-02 08:12:21 -07:00
feat(api): MCP, OpenAPI & Dynamic Introspection
New Features: - API endpoints now support comprehensive input validation with detailed error responses via Pydantic models. - OpenAPI specification endpoint (/openapi.json) and interactive Swagger UI documentation (/docs) now available for API discovery. - Enhanced MCP session lifecycle management with create, retrieve, and delete operations. - Network diagnostic tools: traceroute, nslookup, NMAP scanning, and network topology viewing exposed via API. - Device search, filtering by status (including 'offline'), and bulk operations (copy, delete, update). - Wake-on-LAN functionality for remote device management. - Added dynamic tool disablement and status reporting. Bug Fixes: - Fixed get_tools_status in registry to correctly return boolean values instead of None for enabled tools. - Improved error handling for invalid API inputs with standardized validation responses. - Fixed OPTIONS request handling for cross-origin requests. Refactoring: - Significant refactoring of api_server_start.py to use decorator-based validation (@validate_request).
This commit is contained in:
@@ -5,20 +5,15 @@ Runs all page-specific UI tests and provides summary
|
||||
"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
# Add test directory to path
|
||||
sys.path.insert(0, os.path.dirname(__file__))
|
||||
|
||||
# Import all test modules
|
||||
import test_ui_dashboard # noqa: E402 [flake8 lint suppression]
|
||||
import test_ui_devices # noqa: E402 [flake8 lint suppression]
|
||||
import test_ui_network # noqa: E402 [flake8 lint suppression]
|
||||
import test_ui_maintenance # noqa: E402 [flake8 lint suppression]
|
||||
import test_ui_multi_edit # noqa: E402 [flake8 lint suppression]
|
||||
import test_ui_notifications # noqa: E402 [flake8 lint suppression]
|
||||
import test_ui_settings # noqa: E402 [flake8 lint suppression]
|
||||
import test_ui_plugins # noqa: E402 [flake8 lint suppression]
|
||||
from .test_helpers import test_ui_dashboard
|
||||
from .test_helpers import test_ui_devices
|
||||
from .test_helpers import test_ui_network
|
||||
from .test_helpers import test_ui_maintenance
|
||||
from .test_helpers import test_ui_multi_edit
|
||||
from .test_helpers import test_ui_notifications
|
||||
from .test_helpers import test_ui_settings
|
||||
from .test_helpers import test_ui_plugins
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user