docs(swagger): add tags for groups
continuous-integration/drone the build was successful Details

This commit is contained in:
Geno 2021-06-30 15:47:24 +02:00
parent d38a2a28c3
commit cc0baa3740
5 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@ type Status struct {
// @Summary Show Status of current API
// @Description Show version and status
// @Tags status
// @Produce json
// @Success 200 {object} Status
// @Failure 400 {object} web.HTTPError

View File

@ -18,6 +18,7 @@ type login struct {
// @Summary Login
// @Description Login by username and password, you will get a cookie of current session
// @Tags auth
// @Accept json
// @Produce json
// @Success 200 {object} User

View File

@ -10,6 +10,7 @@ import (
// @Summary Change Password
// @Description Change Password of current login user
// @Tags auth
// @Accept json
// @Produce json
// @Success 200 {object} boolean "if password was saved (e.g. `true`)"

View File

@ -19,6 +19,7 @@ type PasswordWithForgetCode struct {
// @Summary Change Password with ForgetCode
// @Description Change Password of any user by generated forget code
// @Tags auth
// @Accept json
// @Produce json
// @Success 200 {object} string "username of changed password (e.g. `"admin"`)"

View File

@ -10,6 +10,7 @@ import (
// @Summary Login status
// @Description show user_id and username if logged in
// @Tags auth
// @Accept json
// @Produce json
// @Success 200 {object} User