mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 23:54:22 +01:00
@@ -1532,7 +1532,7 @@ func (a *Api) SearchForNumbers(c *gin.Context) {
|
|||||||
// @Success 204
|
// @Success 204
|
||||||
// @Param data body UpdateContactRequest true "Contact"
|
// @Param data body UpdateContactRequest true "Contact"
|
||||||
// @Failure 400 {object} Error
|
// @Failure 400 {object} Error
|
||||||
// @Router /v1/contacts{number} [put]
|
// @Router /v1/contacts/{number} [put]
|
||||||
func (a *Api) UpdateContact(c *gin.Context) {
|
func (a *Api) UpdateContact(c *gin.Context) {
|
||||||
number := c.Param("number")
|
number := c.Param("number")
|
||||||
if number == "" {
|
if number == "" {
|
||||||
@@ -1668,7 +1668,7 @@ func (a *Api) GetTrustMode(c *gin.Context) {
|
|||||||
// @Param number path string true "Registered Phone Number"
|
// @Param number path string true "Registered Phone Number"
|
||||||
// @Success 204
|
// @Success 204
|
||||||
// @Failure 400 {object} Error
|
// @Failure 400 {object} Error
|
||||||
// @Router /v1/contacts{number}/sync [post]
|
// @Router /v1/contacts/{number}/sync [post]
|
||||||
func (a *Api) SendContacts(c *gin.Context) {
|
func (a *Api) SendContacts(c *gin.Context) {
|
||||||
number := c.Param("number")
|
number := c.Param("number")
|
||||||
if number == "" {
|
if number == "" {
|
||||||
|
|||||||
@@ -362,7 +362,7 @@ var doc = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v1/contacts{number}": {
|
"/v1/contacts/{number}": {
|
||||||
"put": {
|
"put": {
|
||||||
"description": "Updates the info associated to a number on the contact list.",
|
"description": "Updates the info associated to a number on the contact list.",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
@@ -404,7 +404,7 @@ var doc = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v1/contacts{number}/sync": {
|
"/v1/contacts/{number}/sync": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "Send a synchronization message with the local contacts list to all linked devices. This command should only be used if this is the primary device.",
|
"description": "Send a synchronization message with the local contacts list to all linked devices. This command should only be used if this is the primary device.",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
|
|||||||
@@ -346,7 +346,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v1/contacts{number}": {
|
"/v1/contacts/{number}": {
|
||||||
"put": {
|
"put": {
|
||||||
"description": "Updates the info associated to a number on the contact list.",
|
"description": "Updates the info associated to a number on the contact list.",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
@@ -388,7 +388,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/v1/contacts{number}/sync": {
|
"/v1/contacts/{number}/sync": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "Send a synchronization message with the local contacts list to all linked devices. This command should only be used if this is the primary device.",
|
"description": "Send a synchronization message with the local contacts list to all linked devices. This command should only be used if this is the primary device.",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
|
|||||||
@@ -530,7 +530,7 @@ paths:
|
|||||||
summary: Set account specific settings.
|
summary: Set account specific settings.
|
||||||
tags:
|
tags:
|
||||||
- General
|
- General
|
||||||
/v1/contacts{number}:
|
/v1/contacts/{number}:
|
||||||
put:
|
put:
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
@@ -558,7 +558,7 @@ paths:
|
|||||||
summary: Updates the info associated to a number on the contact list. If the contact doesn’t exist yet, it will be added.
|
summary: Updates the info associated to a number on the contact list. If the contact doesn’t exist yet, it will be added.
|
||||||
tags:
|
tags:
|
||||||
- Contacts
|
- Contacts
|
||||||
/v1/contacts{number}/sync:
|
/v1/contacts/{number}/sync:
|
||||||
post:
|
post:
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
|
|||||||
Reference in New Issue
Block a user