mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-30 23:03:03 -07:00
Merge pull request #1485 from adamoutler/patch-14
Update OpenAPI spec description with detailed info
This commit is contained in:
@@ -52,7 +52,15 @@ _rebuild_lock = threading.Lock()
|
|||||||
def generate_openapi_spec(
|
def generate_openapi_spec(
|
||||||
title: str = "NetAlertX API",
|
title: str = "NetAlertX API",
|
||||||
version: str = "2.0.0",
|
version: str = "2.0.0",
|
||||||
description: str = "NetAlertX Network Monitoring API - Official Documentation - MCP Compatible",
|
description: str = '''
|
||||||
|
**NetAlertX Network Monitoring API - Official Documentation - MCP Compatible**
|
||||||
|
|
||||||
|
* **MCP endpoint**: `/mcp/sse`
|
||||||
|
|
||||||
|
* **OpenAPI Spec**: `/openapi.json`
|
||||||
|
|
||||||
|
Authorize with your API Key from the NetAlertX WebUI under `Settings > Core > General`
|
||||||
|
''',
|
||||||
servers: Optional[List[Dict[str, str]]] = None,
|
servers: Optional[List[Dict[str, str]]] = None,
|
||||||
flask_app: Optional[Any] = None
|
flask_app: Optional[Any] = None
|
||||||
) -> Dict[str, Any]:
|
) -> Dict[str, Any]:
|
||||||
|
|||||||
Reference in New Issue
Block a user