docs(swagger): add tags for groups
continuous-integration/drone the build was successful
Details
continuous-integration/drone the build was successful
Details
This commit is contained in:
parent
d38a2a28c3
commit
cc0baa3740
|
@ -28,6 +28,7 @@ type Status struct {
|
||||||
|
|
||||||
// @Summary Show Status of current API
|
// @Summary Show Status of current API
|
||||||
// @Description Show version and status
|
// @Description Show version and status
|
||||||
|
// @Tags status
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Success 200 {object} Status
|
// @Success 200 {object} Status
|
||||||
// @Failure 400 {object} web.HTTPError
|
// @Failure 400 {object} web.HTTPError
|
||||||
|
|
|
@ -18,6 +18,7 @@ type login struct {
|
||||||
|
|
||||||
// @Summary Login
|
// @Summary Login
|
||||||
// @Description Login by username and password, you will get a cookie of current session
|
// @Description Login by username and password, you will get a cookie of current session
|
||||||
|
// @Tags auth
|
||||||
// @Accept json
|
// @Accept json
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Success 200 {object} User
|
// @Success 200 {object} User
|
||||||
|
|
|
@ -10,6 +10,7 @@ import (
|
||||||
|
|
||||||
// @Summary Change Password
|
// @Summary Change Password
|
||||||
// @Description Change Password of current login user
|
// @Description Change Password of current login user
|
||||||
|
// @Tags auth
|
||||||
// @Accept json
|
// @Accept json
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Success 200 {object} boolean "if password was saved (e.g. `true`)"
|
// @Success 200 {object} boolean "if password was saved (e.g. `true`)"
|
||||||
|
|
|
@ -19,6 +19,7 @@ type PasswordWithForgetCode struct {
|
||||||
|
|
||||||
// @Summary Change Password with ForgetCode
|
// @Summary Change Password with ForgetCode
|
||||||
// @Description Change Password of any user by generated forget code
|
// @Description Change Password of any user by generated forget code
|
||||||
|
// @Tags auth
|
||||||
// @Accept json
|
// @Accept json
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Success 200 {object} string "username of changed password (e.g. `"admin"`)"
|
// @Success 200 {object} string "username of changed password (e.g. `"admin"`)"
|
||||||
|
|
|
@ -10,6 +10,7 @@ import (
|
||||||
|
|
||||||
// @Summary Login status
|
// @Summary Login status
|
||||||
// @Description show user_id and username if logged in
|
// @Description show user_id and username if logged in
|
||||||
|
// @Tags auth
|
||||||
// @Accept json
|
// @Accept json
|
||||||
// @Produce json
|
// @Produce json
|
||||||
// @Success 200 {object} User
|
// @Success 200 {object} User
|
||||||
|
|
Loading…
Reference in New Issue