rebuilt swagger documentation

This commit is contained in:
Bernhard B
2024-06-18 19:50:09 +02:00
parent 8929326f5f
commit f444622397
3 changed files with 157 additions and 0 deletions

View File

@@ -484,6 +484,36 @@ var doc = `{
} }
}, },
"/v1/contacts/{number}": { "/v1/contacts/{number}": {
"get": {
"description": "List all contacts for the given number.",
"produces": [
"application/json"
],
"tags": [
"Contacts"
],
"summary": "List Contacts",
"parameters": [
{
"type": "string",
"description": "Registered Phone Number",
"name": "number",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/client.ListContactsResponse"
}
}
}
}
},
"put": { "put": {
"description": "Updates the info associated to a number on the contact list.", "description": "Updates the info associated to a number on the contact list.",
"consumes": [ "consumes": [
@@ -2464,6 +2494,35 @@ var doc = `{
} }
} }
}, },
"client.ListContactsResponse": {
"type": "object",
"properties": {
"blocked": {
"type": "boolean"
},
"color": {
"type": "string"
},
"message_expiration": {
"type": "string"
},
"name": {
"type": "string"
},
"number": {
"type": "string"
},
"profile_name": {
"type": "string"
},
"username": {
"type": "string"
},
"uuid": {
"type": "string"
}
}
},
"client.ListInstalledStickerPacksResponse": { "client.ListInstalledStickerPacksResponse": {
"type": "object", "type": "object",
"properties": { "properties": {

View File

@@ -468,6 +468,36 @@
} }
}, },
"/v1/contacts/{number}": { "/v1/contacts/{number}": {
"get": {
"description": "List all contacts for the given number.",
"produces": [
"application/json"
],
"tags": [
"Contacts"
],
"summary": "List Contacts",
"parameters": [
{
"type": "string",
"description": "Registered Phone Number",
"name": "number",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/client.ListContactsResponse"
}
}
}
}
},
"put": { "put": {
"description": "Updates the info associated to a number on the contact list.", "description": "Updates the info associated to a number on the contact list.",
"consumes": [ "consumes": [
@@ -2448,6 +2478,35 @@
} }
} }
}, },
"client.ListContactsResponse": {
"type": "object",
"properties": {
"blocked": {
"type": "boolean"
},
"color": {
"type": "string"
},
"message_expiration": {
"type": "string"
},
"name": {
"type": "string"
},
"number": {
"type": "string"
},
"profile_name": {
"type": "string"
},
"username": {
"type": "string"
},
"uuid": {
"type": "string"
}
}
},
"client.ListInstalledStickerPacksResponse": { "client.ListInstalledStickerPacksResponse": {
"type": "object", "type": "object",
"properties": { "properties": {

View File

@@ -332,6 +332,25 @@ definitions:
status: status:
type: string type: string
type: object type: object
client.ListContactsResponse:
properties:
blocked:
type: boolean
color:
type: string
message_expiration:
type: string
name:
type: string
number:
type: string
profile_name:
type: string
username:
type: string
uuid:
type: string
type: object
client.ListInstalledStickerPacksResponse: client.ListInstalledStickerPacksResponse:
properties: properties:
author: author:
@@ -664,6 +683,26 @@ paths:
tags: tags:
- General - General
/v1/contacts/{number}: /v1/contacts/{number}:
get:
description: List all contacts for the given number.
parameters:
- description: Registered Phone Number
in: path
name: number
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/client.ListContactsResponse'
type: array
summary: List Contacts
tags:
- Contacts
put: put:
consumes: consumes:
- application/json - application/json