package
1.2.0
Repository: https://github.com/ssst0n3/lightweight_api.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AnonymousCreate godoc @Summary create user without authentication if table user is empty @Description Add a user @Tags User @ID anonymous-create-user @Accept json @Produce json @Param user body model.CreateUserBody true "Create User" @Success 200 {object} response.CreateSuccess @Router /api/v1/user/init [post].
Create godoc @Summary create user @Description Add a user @Tags User @ID create-user @Accept json @Produce json @Security ApiKeyAuth @Param user body model.CreateUserBody true "Create User" @Success 200 {object} response.CreateSuccess @Router /api/v1/user [post].
No description provided by the author
No description provided by the author
No description provided by the author
List godoc @Summary list user @Description return users @Tags User @ID list-user @Accept json @Produce json @Security ApiKeyAuth @Success 200 {array} model.ListUserBody @Router /api/v1/user [get].
UpdateBasic godoc @Summary update basic @Description updates some basic information of user @Tags User @ID update-basic @Accept json @Produce json @Security ApiKeyAuth @Param id path int true "User ID" @Param user_update_basic_body body model.UpdateBasicBody true "Update user's basic information" @Success 200 {object} response.Base @Router /api/v1/user/{id}/basic [put].
UpdatePassword godoc @Summary update password @Description update user's password @Tags User @ID update-password @Accept json @Produce json @Security ApiKeyAuth @Param id path int true "User ID" @Param user_update_password_body body model.UpdatePasswordBody true "Update user's password" @Success 200 {object} response.Base @Router /api/v1/user/{id}/password [put].

# Constants

No description provided by the author

# Variables

No description provided by the author