From d289b862d57be8d4082e2ff3e813fdccbbc9bc13 Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Fri, 10 Jul 2020 22:01:55 +0200 Subject: [PATCH] fixed API documentation for send endpoints --- src/api/api.go | 4 ++-- src/docs/docs.go | 4 ++-- src/docs/swagger.json | 4 ++-- src/docs/swagger.yaml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/api/api.go b/src/api/api.go index c4b5348..16ce8a5 100644 --- a/src/api/api.go +++ b/src/api/api.go @@ -404,7 +404,7 @@ func (a *Api) VerifyRegisteredNumber(c *gin.Context) { // @Success 201 {string} string "OK" // @Failure 400 {object} Error // @Param data body SendMessageV1 true "Input Data" -// @Router /v1/send/ [post] +// @Router /v1/send [post] // @Deprecated func (a *Api) Send(c *gin.Context) { @@ -431,7 +431,7 @@ func (a *Api) Send(c *gin.Context) { // @Success 201 {string} string "OK" // @Failure 400 {object} Error // @Param data body SendMessageV2 true "Input Data" -// @Router /v2/send/ [post] +// @Router /v2/send [post] func (a *Api) SendV2(c *gin.Context) { var req SendMessageV2 err := c.BindJSON(&req) diff --git a/src/docs/docs.go b/src/docs/docs.go index 2dde9ea..cb80f03 100644 --- a/src/docs/docs.go +++ b/src/docs/docs.go @@ -315,7 +315,7 @@ var doc = `{ } } }, - "/v1/send/": { + "/v1/send": { "post": { "description": "Send a signal message", "consumes": [ @@ -356,7 +356,7 @@ var doc = `{ } } }, - "/v2/send/": { + "/v2/send": { "post": { "description": "Send a signal message", "consumes": [ diff --git a/src/docs/swagger.json b/src/docs/swagger.json index 9bed4ba..f8254d3 100644 --- a/src/docs/swagger.json +++ b/src/docs/swagger.json @@ -300,7 +300,7 @@ } } }, - "/v1/send/": { + "/v1/send": { "post": { "description": "Send a signal message", "consumes": [ @@ -341,7 +341,7 @@ } } }, - "/v2/send/": { + "/v2/send": { "post": { "description": "Send a signal message", "consumes": [ diff --git a/src/docs/swagger.yaml b/src/docs/swagger.yaml index 53b8368..d8c6827 100644 --- a/src/docs/swagger.yaml +++ b/src/docs/swagger.yaml @@ -271,7 +271,7 @@ paths: summary: Verify a registered phone number. tags: - Devices - /v1/send/: + /v1/send: post: consumes: - application/json @@ -298,7 +298,7 @@ paths: summary: Send a signal message. tags: - Messages - /v2/send/: + /v2/send: post: consumes: - application/json