mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-27 21:14:46 +03:00
docs(api): mark keepTraffic optional on the client delete endpoints
Both delete routes read keepTraffic with c.Query and treat a missing value as "drop the traffic row", but the registry listed it without optional, so the OpenAPI document and every client generated from it required the parameter.
This commit is contained in:
@@ -10121,7 +10121,7 @@
|
||||
{
|
||||
"name": "keepTraffic",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"required": false,
|
||||
"description": "Pass 1 to retain the xray_client_traffic row after deletion.",
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
@@ -10176,7 +10176,7 @@
|
||||
{
|
||||
"name": "keepTraffic",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"required": false,
|
||||
"description": "Pass 1 to retain the xray_client_traffic row after deletion.",
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
|
||||
@@ -10121,7 +10121,7 @@
|
||||
{
|
||||
"name": "keepTraffic",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"required": false,
|
||||
"description": "Pass 1 to retain the xray_client_traffic row after deletion.",
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
@@ -10176,7 +10176,7 @@
|
||||
{
|
||||
"name": "keepTraffic",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"required": false,
|
||||
"description": "Pass 1 to retain the xray_client_traffic row after deletion.",
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
|
||||
@@ -1342,6 +1342,7 @@ export const sections: readonly Section[] = [
|
||||
in: 'query',
|
||||
type: 'integer',
|
||||
desc: 'Pass 1 to retain the xray_client_traffic row after deletion.',
|
||||
optional: true,
|
||||
},
|
||||
],
|
||||
response: '{\n "success": true,\n "msg": "Client deleted"\n}',
|
||||
@@ -1360,6 +1361,7 @@ export const sections: readonly Section[] = [
|
||||
in: 'query',
|
||||
type: 'integer',
|
||||
desc: 'Pass 1 to retain the xray_client_traffic row after deletion.',
|
||||
optional: true,
|
||||
},
|
||||
],
|
||||
response: '{\n "success": true,\n "msg": "Client deleted"\n}',
|
||||
|
||||
Reference in New Issue
Block a user