Update openapi.yaml
This commit is contained in:
+20
-22
@@ -87,14 +87,12 @@ security:
|
|||||||
tags:
|
tags:
|
||||||
- name: Authentication
|
- name: Authentication
|
||||||
description: Authentication and authorization operations
|
description: Authentication and authorization operations
|
||||||
- name: GET INFO
|
|
||||||
description: Query and retrieve information
|
|
||||||
- name: Logs & Events
|
- name: Logs & Events
|
||||||
description: Activity logs, connections, and monitoring
|
description: Activity logs, connections, and monitoring
|
||||||
- name: Line API
|
- name: Line API
|
||||||
description: Subscription line management
|
description: M3U subscription line management
|
||||||
- name: User API
|
- name: User API
|
||||||
description: User account management
|
description: User account management (admins, resellers, sub-accounts)
|
||||||
- name: MAG API
|
- name: MAG API
|
||||||
description: MAG device management
|
description: MAG device management
|
||||||
- name: Enigma API
|
- name: Enigma API
|
||||||
@@ -407,7 +405,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
enum: [client_logs]
|
enum: [client_logs]
|
||||||
- name: line_id
|
- name: id
|
||||||
in: query
|
in: query
|
||||||
description: Filter by specific line ID
|
description: Filter by specific line ID
|
||||||
schema:
|
schema:
|
||||||
@@ -1097,7 +1095,7 @@ paths:
|
|||||||
|
|
||||||
**Example:**
|
**Example:**
|
||||||
```bash
|
```bash
|
||||||
curl "http://your-server.com/cSbuFLhp/?api_key=API-KEY&action=get_line&line_id=123"
|
curl "http://your-server.com/cSbuFLhp/?api_key=API-KEY&action=get_line&id=123"
|
||||||
```
|
```
|
||||||
tags: [Line API]
|
tags: [Line API]
|
||||||
operationId: getLine
|
operationId: getLine
|
||||||
@@ -1109,7 +1107,7 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
enum: [get_line]
|
enum: [get_line]
|
||||||
- name: line_id
|
- name: id
|
||||||
in: query
|
in: query
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
@@ -1258,7 +1256,7 @@ paths:
|
|||||||
**Example:**
|
**Example:**
|
||||||
```bash
|
```bash
|
||||||
curl -X POST "http://your-server.com/cSbuFLhp/?api_key=API-KEY&action=edit_line" \
|
curl -X POST "http://your-server.com/cSbuFLhp/?api_key=API-KEY&action=edit_line" \
|
||||||
-d "line_id=123" \
|
-d "id=123" \
|
||||||
-d "exp_date=2026-06-30" \
|
-d "exp_date=2026-06-30" \
|
||||||
-d "max_connections=2"
|
-d "max_connections=2"
|
||||||
```
|
```
|
||||||
@@ -1278,9 +1276,9 @@ paths:
|
|||||||
application/x-www-form-urlencoded:
|
application/x-www-form-urlencoded:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
required: [line_id]
|
required: [id]
|
||||||
properties:
|
properties:
|
||||||
line_id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
description: Line ID to edit
|
description: Line ID to edit
|
||||||
example: 123
|
example: 123
|
||||||
@@ -1328,7 +1326,7 @@ paths:
|
|||||||
**Example:**
|
**Example:**
|
||||||
```bash
|
```bash
|
||||||
curl -X POST "http://your-server.com/cSbuFLhp/?api_key=API-KEY&action=delete_line" \
|
curl -X POST "http://your-server.com/cSbuFLhp/?api_key=API-KEY&action=delete_line" \
|
||||||
-d "line_id=123"
|
-d "id=123"
|
||||||
```
|
```
|
||||||
tags: [Line API]
|
tags: [Line API]
|
||||||
operationId: deleteLine
|
operationId: deleteLine
|
||||||
@@ -1346,9 +1344,9 @@ paths:
|
|||||||
application/x-www-form-urlencoded:
|
application/x-www-form-urlencoded:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
required: [line_id]
|
required: [id]
|
||||||
properties:
|
properties:
|
||||||
line_id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
description: Line ID to delete
|
description: Line ID to delete
|
||||||
example: 123
|
example: 123
|
||||||
@@ -1380,9 +1378,9 @@ paths:
|
|||||||
application/x-www-form-urlencoded:
|
application/x-www-form-urlencoded:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
required: [line_id]
|
required: [id]
|
||||||
properties:
|
properties:
|
||||||
line_id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
example: 123
|
example: 123
|
||||||
responses:
|
responses:
|
||||||
@@ -1413,9 +1411,9 @@ paths:
|
|||||||
application/x-www-form-urlencoded:
|
application/x-www-form-urlencoded:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
required: [line_id]
|
required: [id]
|
||||||
properties:
|
properties:
|
||||||
line_id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
example: 123
|
example: 123
|
||||||
responses:
|
responses:
|
||||||
@@ -1446,9 +1444,9 @@ paths:
|
|||||||
application/x-www-form-urlencoded:
|
application/x-www-form-urlencoded:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
required: [line_id]
|
required: [id]
|
||||||
properties:
|
properties:
|
||||||
line_id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
example: 123
|
example: 123
|
||||||
responses:
|
responses:
|
||||||
@@ -1479,9 +1477,9 @@ paths:
|
|||||||
application/x-www-form-urlencoded:
|
application/x-www-form-urlencoded:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
required: [line_id]
|
required: [id]
|
||||||
properties:
|
properties:
|
||||||
line_id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
example: 123
|
example: 123
|
||||||
responses:
|
responses:
|
||||||
@@ -1870,7 +1868,7 @@ paths:
|
|||||||
data:
|
data:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
line_id:
|
id:
|
||||||
type: integer
|
type: integer
|
||||||
description: New line ID
|
description: New line ID
|
||||||
username:
|
username:
|
||||||
|
|||||||
Reference in New Issue
Block a user