mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 23:54:22 +01:00
Correct "number" - it's actually the phone number
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 int true "Reaction Identifier"
|
// @Param id path string true "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 int true "Reaction Identifier"
|
// @Param id path string true "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 int true "Receipt Identifier"
|
// @Param id path string true "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
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
These files are generated from the [swaggo/swag](https://github.com/swaggo/swag) tool.
|
These files are generated from the [swaggo/swag](https://github.com/swaggo/swag) tool.
|
||||||
|
|
||||||
To regenerate them, run:
|
To regenerate them, run in /src:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --rm -v $(pwd):/code ghcr.io/swaggo/swag:latest init
|
docker run --rm -v $(pwd):/code ghcr.io/swaggo/swag:latest init
|
||||||
|
|||||||
@@ -1417,8 +1417,8 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"description": "Reaction Identifier",
|
"description": "Phone number",
|
||||||
"name": "id",
|
"name": "id",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
@@ -1462,8 +1462,8 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"description": "Reaction Identifier",
|
"description": "Phone number",
|
||||||
"name": "id",
|
"name": "id",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
@@ -1509,8 +1509,8 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"description": "Receipt Identifier",
|
"description": "Phone number",
|
||||||
"name": "id",
|
"name": "id",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
|
|||||||
@@ -1414,8 +1414,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"description": "Reaction Identifier",
|
"description": "Phone number",
|
||||||
"name": "id",
|
"name": "id",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
@@ -1459,8 +1459,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"description": "Reaction Identifier",
|
"description": "Phone number",
|
||||||
"name": "id",
|
"name": "id",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
@@ -1506,8 +1506,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"description": "Receipt Identifier",
|
"description": "Phone number",
|
||||||
"name": "id",
|
"name": "id",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
|
|||||||
@@ -1287,11 +1287,11 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/api.Reaction'
|
$ref: '#/definitions/api.Reaction'
|
||||||
- description: Reaction Identifier
|
- description: Phone number
|
||||||
in: path
|
in: path
|
||||||
name: id
|
name: id
|
||||||
required: true
|
required: true
|
||||||
type: integer
|
type: string
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
@@ -1317,11 +1317,11 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/api.Reaction'
|
$ref: '#/definitions/api.Reaction'
|
||||||
- description: Reaction Identifier
|
- description: Phone number
|
||||||
in: path
|
in: path
|
||||||
name: id
|
name: id
|
||||||
required: true
|
required: true
|
||||||
type: integer
|
type: string
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
@@ -1348,11 +1348,11 @@ paths:
|
|||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/api.Receipt'
|
$ref: '#/definitions/api.Receipt'
|
||||||
- description: Receipt Identifier
|
- description: Phone number
|
||||||
in: path
|
in: path
|
||||||
name: id
|
name: id
|
||||||
required: true
|
required: true
|
||||||
type: integer
|
type: string
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
|
|||||||
Reference in New Issue
Block a user