mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-23 14:14:16 +00:00
parent
43747af9d4
commit
8e2403bee4
@ -1062,7 +1062,7 @@ func (a *Api) SendStopTyping(c *gin.Context) {
|
|||||||
// @Accept json
|
// @Accept json
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Param numbers query []string true "Numbers to check" collectionFormat(multi)
|
// @Param numbers query []string true "Numbers to check" collectionFormat(multi)
|
||||||
// @Success 204 {object} SearchResponse
|
// @Success 200 {object} []SearchResponse
|
||||||
// @Failure 400 {object} Error
|
// @Failure 400 {object} Error
|
||||||
// @Router /v1/search [get]
|
// @Router /v1/search [get]
|
||||||
func (a *Api) SearchForNumbers(c *gin.Context) {
|
func (a *Api) SearchForNumbers(c *gin.Context) {
|
||||||
|
|||||||
@ -940,10 +940,13 @@ var doc = `{
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"204": {
|
"200": {
|
||||||
"description": "No Content",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/api.SearchResponse"
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/api.SearchResponse"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
|
|||||||
@ -925,10 +925,13 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"204": {
|
"200": {
|
||||||
"description": "No Content",
|
"description": "OK",
|
||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/definitions/api.SearchResponse"
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/api.SearchResponse"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
|
|||||||
@ -799,10 +799,12 @@ paths:
|
|||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
responses:
|
responses:
|
||||||
"204":
|
"200":
|
||||||
description: No Content
|
description: OK
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/definitions/api.SearchResponse'
|
items:
|
||||||
|
$ref: '#/definitions/api.SearchResponse'
|
||||||
|
type: array
|
||||||
"400":
|
"400":
|
||||||
description: Bad Request
|
description: Bad Request
|
||||||
schema:
|
schema:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user