From b5c1a8c046a50f60b43f3f82cb217f75d175aeaa Mon Sep 17 00:00:00 2001 From: worldofiptvcom Date: Fri, 12 Dec 2025 15:55:31 +0300 Subject: [PATCH] Update openapi.yaml Improve: Allow custom protocol, server, and port configuration - Add protocol selector (http/https) - Allow custom port input (not just predefined) - Single unified server configuration - Better flexibility for users with custom setups --- openapi.yaml | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 83c2385..2b059fe 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -17,15 +17,23 @@ info: ### 🔗 Base URL Pattern ``` - http://YOUR_SERVER//?api_key=&action=ACTION + {protocol}://YOUR_SERVER:{port}//?api_key=&action=ACTION ``` - **Replace:** - - `YOUR_SERVER` → Your server domain/IP + **Customize:** + - `{protocol}` → http or https + - `YOUR_SERVER` → Your server domain/IP (e.g., 192.168.1.100) + - `{port}` → Your port (80, 8000, 9000, or custom) - `` → Your access code (e.g., `cSbuFLhp`) - `` → Your API key - `ACTION` → API action name (e.g., `get_lines`) + **Common Ports:** + - `80` - HTTP (default) + - `8000` - HTTP (alternative) + - `9000` - HTTPS (recommended) + - Custom - Any port you configured + --- ### 🔐 Authentication Setup @@ -104,27 +112,21 @@ info: url: https://xui.one servers: - - url: http://{server}:{port}/{accessCode} - description: XUI.ONE API Server (HTTP) + - url: '{protocol}://{server}:{port}/{accessCode}' + description: XUI.ONE API Server (Customizable) variables: + protocol: + default: http + description: Protocol (http or https) + enum: + - http + - https server: default: your-server.com - description: Your XUI.ONE server IP or domain + description: Your XUI.ONE server IP or domain (e.g., 192.168.1.100 or panel.yourdomain.com) port: default: '80' - description: API port - enum: - - '80' - - '8000' - accessCode: - default: cSbuFLhp - description: Your unique access code for API access - - url: https://{server}:9000/{accessCode} - description: XUI.ONE API Server (HTTPS - Recommended) - variables: - server: - default: your-server.com - description: Your XUI.ONE server IP or domain + description: API port (80 for HTTP, 9000 for HTTPS, or custom port) accessCode: default: cSbuFLhp description: Your unique access code for API access