Skip to content

Commit

Permalink
rebuilt swagger documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bbernhard committed Jun 18, 2024
1 parent 8929326 commit f444622
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 0 deletions.
59 changes: 59 additions & 0 deletions src/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,36 @@ var doc = `{
}
},
"/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": {
"description": "Updates the info associated to a number on the contact list.",
"consumes": [
Expand Down Expand Up @@ -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": {
"type": "object",
"properties": {
Expand Down
59 changes: 59 additions & 0 deletions src/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,36 @@
}
},
"/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": {
"description": "Updates the info associated to a number on the contact list.",
"consumes": [
Expand Down Expand Up @@ -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": {
"type": "object",
"properties": {
Expand Down
39 changes: 39 additions & 0 deletions src/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,25 @@ definitions:
status:
type: string
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:
properties:
author:
Expand Down Expand Up @@ -664,6 +683,26 @@ paths:
tags:
- General
/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:
consumes:
- application/json
Expand Down

0 comments on commit f444622

Please sign in to comment.