diff --git a/src/api/api.go b/src/api/api.go index 34a7c3e..fc2f595 100644 --- a/src/api/api.go +++ b/src/api/api.go @@ -1532,7 +1532,7 @@ func (a *Api) SearchForNumbers(c *gin.Context) { // @Success 204 // @Param data body UpdateContactRequest true "Contact" // @Failure 400 {object} Error -// @Router /v1/contacts{number} [put] +// @Router /v1/contacts/{number} [put] func (a *Api) UpdateContact(c *gin.Context) { number := c.Param("number") if number == "" { @@ -1668,7 +1668,7 @@ func (a *Api) GetTrustMode(c *gin.Context) { // @Param number path string true "Registered Phone Number" // @Success 204 // @Failure 400 {object} Error -// @Router /v1/contacts{number}/sync [post] +// @Router /v1/contacts/{number}/sync [post] func (a *Api) SendContacts(c *gin.Context) { number := c.Param("number") if number == "" { diff --git a/src/docs/docs.go b/src/docs/docs.go index be34931..fa1273d 100644 --- a/src/docs/docs.go +++ b/src/docs/docs.go @@ -362,7 +362,7 @@ var doc = `{ } } }, - "/v1/contacts{number}": { + "/v1/contacts/{number}": { "put": { "description": "Updates the info associated to a number on the contact list.", "consumes": [ @@ -404,7 +404,7 @@ var doc = `{ } } }, - "/v1/contacts{number}/sync": { + "/v1/contacts/{number}/sync": { "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.", "consumes": [ diff --git a/src/docs/swagger.json b/src/docs/swagger.json index ef70bea..7b72f61 100644 --- a/src/docs/swagger.json +++ b/src/docs/swagger.json @@ -346,7 +346,7 @@ } } }, - "/v1/contacts{number}": { + "/v1/contacts/{number}": { "put": { "description": "Updates the info associated to a number on the contact list.", "consumes": [ @@ -388,7 +388,7 @@ } } }, - "/v1/contacts{number}/sync": { + "/v1/contacts/{number}/sync": { "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.", "consumes": [ diff --git a/src/docs/swagger.yaml b/src/docs/swagger.yaml index f07b55a..ed7e087 100644 --- a/src/docs/swagger.yaml +++ b/src/docs/swagger.yaml @@ -530,7 +530,7 @@ paths: summary: Set account specific settings. tags: - General - /v1/contacts{number}: + /v1/contacts/{number}: put: consumes: - 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. tags: - Contacts - /v1/contacts{number}/sync: + /v1/contacts/{number}/sync: post: consumes: - application/json