diff --git a/controllers/balance.ctrl.go b/controllers/balance.ctrl.go index daf8339..d6b05cb 100644 --- a/controllers/balance.ctrl.go +++ b/controllers/balance.ctrl.go @@ -27,6 +27,7 @@ type BalanceResponse struct { // @Description Current user's balance in satoshi // @Accept json // @Produce json +// @Tags Account // @Success 200 {object} BalanceResponse // @Failure 400 {object} responses.ErrorResponse // @Failure 500 {object} responses.ErrorResponse diff --git a/controllers/create.ctrl.go b/controllers/create.ctrl.go index 9407b58..f2cc0fd 100644 --- a/controllers/create.ctrl.go +++ b/controllers/create.ctrl.go @@ -33,6 +33,7 @@ type CreateUserRequestBody struct { // @Description Create a new account with a login and password // @Accept json // @Produce json +// @Tags Account // @Param account body CreateUserRequestBody false "Create User" // @Success 200 {object} CreateUserResponseBody // @Failure 400 {object} responses.ErrorResponse diff --git a/docs/docs.go b/docs/docs.go index 70d1cde..5a56f9d 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -38,6 +38,9 @@ const docTemplate = `{ "produces": [ "application/json" ], + "tags": [ + "account" + ], "summary": "Retrieve balance", "responses": { "200": { diff --git a/docs/swagger.json b/docs/swagger.json index b8d1d21..5d14f0a 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -30,6 +30,9 @@ "produces": [ "application/json" ], + "tags": [ + "account" + ], "summary": "Retrieve balance", "responses": { "200": { diff --git a/docs/swagger.yaml b/docs/swagger.yaml index ebc170f..b3ba793 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -71,6 +71,8 @@ paths: security: - OAuth2Password: [] summary: Retrieve balance + tags: + - account /create: post: consumes: