DeleteClient()
This commit is contained in:
@@ -184,11 +184,63 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"summary": "Delete a client",
|
||||
"operationId": "api-clients-delete",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "UserID",
|
||||
"name": "uid",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"description": "ClientID",
|
||||
"name": "cid",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/models.ClientJSON"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ginresp.apiError"
|
||||
}
|
||||
},
|
||||
"401": {
|
||||
"description": "Unauthorized",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ginresp.apiError"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ginresp.apiError"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ginresp.apiError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api-v2/user/{uid}/clients/{cid}": {
|
||||
"get": {
|
||||
"summary": "get a single clients",
|
||||
"summary": "Get a single clients",
|
||||
"operationId": "api-clients-get",
|
||||
"parameters": [
|
||||
{
|
||||
@@ -674,6 +726,23 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"handler.AddClient.body": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"agent_model": {
|
||||
"type": "string"
|
||||
},
|
||||
"agent_version": {
|
||||
"type": "string"
|
||||
},
|
||||
"client_type": {
|
||||
"type": "string"
|
||||
},
|
||||
"fcm_token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"handler.CreateUser.body": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -23,6 +23,17 @@ definitions:
|
||||
success:
|
||||
type: string
|
||||
type: object
|
||||
handler.AddClient.body:
|
||||
properties:
|
||||
agent_model:
|
||||
type: string
|
||||
agent_version:
|
||||
type: string
|
||||
client_type:
|
||||
type: string
|
||||
fcm_token:
|
||||
type: string
|
||||
type: object
|
||||
handler.CreateUser.body:
|
||||
properties:
|
||||
agent_model:
|
||||
@@ -377,6 +388,41 @@ paths:
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.apiError'
|
||||
summary: List all clients
|
||||
post:
|
||||
operationId: api-clients-delete
|
||||
parameters:
|
||||
- description: UserID
|
||||
in: path
|
||||
name: uid
|
||||
required: true
|
||||
type: integer
|
||||
- description: ClientID
|
||||
in: path
|
||||
name: cid
|
||||
required: true
|
||||
type: integer
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/models.ClientJSON'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.apiError'
|
||||
"401":
|
||||
description: Unauthorized
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.apiError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.apiError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.apiError'
|
||||
summary: Delete a client
|
||||
/api-v2/user/{uid}/clients/{cid}:
|
||||
get:
|
||||
operationId: api-clients-get
|
||||
@@ -412,7 +458,7 @@ paths:
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.apiError'
|
||||
summary: get a single clients
|
||||
summary: Get a single clients
|
||||
/api/ack.php:
|
||||
get:
|
||||
operationId: compat-ack
|
||||
|
||||
Reference in New Issue
Block a user