DeleteClient()

This commit is contained in:
2022-11-19 12:59:25 +01:00
parent 650ba20e5d
commit e53f40866e
4 changed files with 185 additions and 12 deletions

View File

@@ -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