mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 15:44:28 +01:00
fixed API documentation for send endpoints
This commit is contained in:
@@ -404,7 +404,7 @@ func (a *Api) VerifyRegisteredNumber(c *gin.Context) {
|
|||||||
// @Success 201 {string} string "OK"
|
// @Success 201 {string} string "OK"
|
||||||
// @Failure 400 {object} Error
|
// @Failure 400 {object} Error
|
||||||
// @Param data body SendMessageV1 true "Input Data"
|
// @Param data body SendMessageV1 true "Input Data"
|
||||||
// @Router /v1/send/ [post]
|
// @Router /v1/send [post]
|
||||||
// @Deprecated
|
// @Deprecated
|
||||||
func (a *Api) Send(c *gin.Context) {
|
func (a *Api) Send(c *gin.Context) {
|
||||||
|
|
||||||
@@ -431,7 +431,7 @@ func (a *Api) Send(c *gin.Context) {
|
|||||||
// @Success 201 {string} string "OK"
|
// @Success 201 {string} string "OK"
|
||||||
// @Failure 400 {object} Error
|
// @Failure 400 {object} Error
|
||||||
// @Param data body SendMessageV2 true "Input Data"
|
// @Param data body SendMessageV2 true "Input Data"
|
||||||
// @Router /v2/send/ [post]
|
// @Router /v2/send [post]
|
||||||
func (a *Api) SendV2(c *gin.Context) {
|
func (a *Api) SendV2(c *gin.Context) {
|
||||||
var req SendMessageV2
|
var req SendMessageV2
|
||||||
err := c.BindJSON(&req)
|
err := c.BindJSON(&req)
|
||||||
|
|||||||
@@ -315,7 +315,7 @@ var doc = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v1/send/": {
|
"/v1/send": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "Send a signal message",
|
"description": "Send a signal message",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
@@ -356,7 +356,7 @@ var doc = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v2/send/": {
|
"/v2/send": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "Send a signal message",
|
"description": "Send a signal message",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
|
|||||||
@@ -300,7 +300,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v1/send/": {
|
"/v1/send": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "Send a signal message",
|
"description": "Send a signal message",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
@@ -341,7 +341,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v2/send/": {
|
"/v2/send": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "Send a signal message",
|
"description": "Send a signal message",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ paths:
|
|||||||
summary: Verify a registered phone number.
|
summary: Verify a registered phone number.
|
||||||
tags:
|
tags:
|
||||||
- Devices
|
- Devices
|
||||||
/v1/send/:
|
/v1/send:
|
||||||
post:
|
post:
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
@@ -298,7 +298,7 @@ paths:
|
|||||||
summary: Send a signal message.
|
summary: Send a signal message.
|
||||||
tags:
|
tags:
|
||||||
- Messages
|
- Messages
|
||||||
/v2/send/:
|
/v2/send:
|
||||||
post:
|
post:
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
|
|||||||
Reference in New Issue
Block a user