mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 15:44:28 +01:00
Correct field name
This commit is contained in:
@@ -1416,7 +1416,7 @@ func (a *Api) UpdateGroup(c *gin.Context) {
|
|||||||
// @Success 204 {string} OK
|
// @Success 204 {string} OK
|
||||||
// @Failure 400 {object} Error
|
// @Failure 400 {object} Error
|
||||||
// @Param data body Reaction true "Reaction"
|
// @Param data body Reaction true "Reaction"
|
||||||
// @Param id path string true "Phone number"
|
// @Param number path string true "Registered phone number"
|
||||||
// @Router /v1/reactions/{number} [post]
|
// @Router /v1/reactions/{number} [post]
|
||||||
func (a *Api) SendReaction(c *gin.Context) {
|
func (a *Api) SendReaction(c *gin.Context) {
|
||||||
var req Reaction
|
var req Reaction
|
||||||
@@ -1465,7 +1465,7 @@ func (a *Api) SendReaction(c *gin.Context) {
|
|||||||
// @Success 204 {string} OK
|
// @Success 204 {string} OK
|
||||||
// @Failure 400 {object} Error
|
// @Failure 400 {object} Error
|
||||||
// @Param data body Reaction true "Reaction"
|
// @Param data body Reaction true "Reaction"
|
||||||
// @Param id path string true "Phone number"
|
// @Param number path string true "Registered phone number"
|
||||||
// @Router /v1/reactions/{number} [delete]
|
// @Router /v1/reactions/{number} [delete]
|
||||||
func (a *Api) RemoveReaction(c *gin.Context) {
|
func (a *Api) RemoveReaction(c *gin.Context) {
|
||||||
var req Reaction
|
var req Reaction
|
||||||
@@ -1509,7 +1509,7 @@ func (a *Api) RemoveReaction(c *gin.Context) {
|
|||||||
// @Success 204 {string} OK
|
// @Success 204 {string} OK
|
||||||
// @Failure 400 {object} Error
|
// @Failure 400 {object} Error
|
||||||
// @Param data body Receipt true "Receipt"
|
// @Param data body Receipt true "Receipt"
|
||||||
// @Param id path string true "Phone number"
|
// @Param number path string true "Registered phone number"
|
||||||
// @Router /v1/receipts/{number} [post]
|
// @Router /v1/receipts/{number} [post]
|
||||||
func (a *Api) SendReceipt(c *gin.Context) {
|
func (a *Api) SendReceipt(c *gin.Context) {
|
||||||
var req Receipt
|
var req Receipt
|
||||||
|
|||||||
@@ -1418,8 +1418,8 @@ const docTemplate = `{
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Phone number",
|
"description": "Registered phone number",
|
||||||
"name": "id",
|
"name": "number",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
@@ -1463,8 +1463,8 @@ const docTemplate = `{
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Phone number",
|
"description": "Registered phone number",
|
||||||
"name": "id",
|
"name": "number",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
@@ -1510,8 +1510,8 @@ const docTemplate = `{
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Phone number",
|
"description": "Registered phone number",
|
||||||
"name": "id",
|
"name": "number",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1415,8 +1415,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Phone number",
|
"description": "Registered phone number",
|
||||||
"name": "id",
|
"name": "number",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
@@ -1460,8 +1460,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Phone number",
|
"description": "Registered phone number",
|
||||||
"name": "id",
|
"name": "number",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
@@ -1507,8 +1507,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Phone number",
|
"description": "Registered phone number",
|
||||||
"name": "id",
|
"name": "number",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
@@ -2296,69 +2296,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"api.SendMessageV2": {
|
"api.SendMessageV2": {
|
||||||
"type": "object",
|
"type": "object"
|
||||||
"properties": {
|
|
||||||
"base64_attachments": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"example": [
|
|
||||||
"\u003cBASE64 ENCODED DATA\u003e",
|
|
||||||
"data:\u003cMIME-TYPE\u003e;base64\u003ccomma\u003e\u003cBASE64 ENCODED DATA\u003e",
|
|
||||||
"data:\u003cMIME-TYPE\u003e;filename=\u003cFILENAME\u003e;base64\u003ccomma\u003e\u003cBASE64 ENCODED DATA\u003e"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"edit_timestamp": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"mentions": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"$ref": "#/definitions/data.MessageMention"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"message": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"notify_self": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"number": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"quote_author": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"quote_mentions": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"$ref": "#/definitions/data.MessageMention"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"quote_message": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"quote_timestamp": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"recipients": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"sticker": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"text_mode": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": [
|
|
||||||
"normal",
|
|
||||||
"styled"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"api.SetUsernameRequest": {
|
"api.SetUsernameRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@@ -2631,20 +2569,6 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"data.MessageMention": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"author": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"length": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"start": {
|
|
||||||
"type": "integer"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
|
|||||||
@@ -163,48 +163,7 @@ definitions:
|
|||||||
type: array
|
type: array
|
||||||
type: object
|
type: object
|
||||||
api.SendMessageV2:
|
api.SendMessageV2:
|
||||||
properties:
|
type: object
|
||||||
base64_attachments:
|
|
||||||
example:
|
|
||||||
- <BASE64 ENCODED DATA>
|
|
||||||
- data:<MIME-TYPE>;base64<comma><BASE64 ENCODED DATA>
|
|
||||||
- data:<MIME-TYPE>;filename=<FILENAME>;base64<comma><BASE64 ENCODED DATA>
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
edit_timestamp:
|
|
||||||
type: integer
|
|
||||||
mentions:
|
|
||||||
items:
|
|
||||||
$ref: '#/definitions/data.MessageMention'
|
|
||||||
type: array
|
|
||||||
message:
|
|
||||||
type: string
|
|
||||||
notify_self:
|
|
||||||
type: boolean
|
|
||||||
number:
|
|
||||||
type: string
|
|
||||||
quote_author:
|
|
||||||
type: string
|
|
||||||
quote_mentions:
|
|
||||||
items:
|
|
||||||
$ref: '#/definitions/data.MessageMention'
|
|
||||||
type: array
|
|
||||||
quote_message:
|
|
||||||
type: string
|
|
||||||
quote_timestamp:
|
|
||||||
type: integer
|
|
||||||
recipients:
|
|
||||||
items:
|
|
||||||
type: string
|
|
||||||
type: array
|
|
||||||
sticker:
|
|
||||||
type: string
|
|
||||||
text_mode:
|
|
||||||
enum:
|
|
||||||
- normal
|
|
||||||
- styled
|
|
||||||
type: string
|
|
||||||
api.SetUsernameRequest:
|
api.SetUsernameRequest:
|
||||||
properties:
|
properties:
|
||||||
username:
|
username:
|
||||||
@@ -382,14 +341,6 @@ definitions:
|
|||||||
username_link:
|
username_link:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
data.MessageMention:
|
|
||||||
properties:
|
|
||||||
author:
|
|
||||||
type: string
|
|
||||||
length:
|
|
||||||
type: integer
|
|
||||||
start:
|
|
||||||
type: integer
|
|
||||||
host: localhost:8080
|
host: localhost:8080
|
||||||
info:
|
info:
|
||||||
contact: {}
|
contact: {}
|
||||||
@@ -1336,9 +1287,9 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/api.Reaction'
|
$ref: '#/definitions/api.Reaction'
|
||||||
- description: Phone number
|
- description: Registered phone number
|
||||||
in: path
|
in: path
|
||||||
name: id
|
name: number
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
produces:
|
produces:
|
||||||
@@ -1366,9 +1317,9 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/api.Reaction'
|
$ref: '#/definitions/api.Reaction'
|
||||||
- description: Phone number
|
- description: Registered phone number
|
||||||
in: path
|
in: path
|
||||||
name: id
|
name: number
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
produces:
|
produces:
|
||||||
@@ -1397,9 +1348,9 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/api.Receipt'
|
$ref: '#/definitions/api.Receipt'
|
||||||
- description: Phone number
|
- description: Registered phone number
|
||||||
in: path
|
in: path
|
||||||
name: id
|
name: number
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
produces:
|
produces:
|
||||||
|
|||||||
Reference in New Issue
Block a user