users

package
v0.0.0-...-cf20ef5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteUser

func DeleteUser(ctx *gin.Context)

DeleteUser func for deletes user by given ID. @Description Delete user by given ID. @Summary delete user by given ID @Tags User @Accept json @Produce json @Param id body string true "User ID" @Success 204 {string} status "ok" @Security ApiKeyAuth @Router /v1/user [delete]

func GetUser

func GetUser(ctx *gin.Context)

GetUser func gets user by given ID or 404 error. @Description Get user by given ID. @Summary get user by given ID @Tags User @Accept json @Produce json @Param id path string true "User ID" @Success 200 @Router /v1/user/{id} [get]

func InitRouter

func InitRouter(r *gin.RouterGroup)

func ListUsers

func ListUsers(ctx *gin.Context)

Getusers func gets all exists users. @Description Get all exists users. @Summary get all exists users @Tags users @Accept json @Produce json @Success 200 @Router /v1/users [get]

func PatchUser

func PatchUser(ctx *gin.Context)

UpdateUser func for updates user by given ID. @Description Update user. @Summary update user @Tags User @Accept json @Produce json @Param id body string true "User ID" @Success 201 {string} status "ok" @Security ApiKeyAuth @Router /v1/user [put]

func PostUser

func PostUser(ctx *gin.Context)

CreateUser func for creates a new user. @Description Create a new user. @Summary create a new user @Tags User @Accept json @Produce json @Success 200 @Router /v1/user [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL