Documentation ¶
Index ¶
- func CreateTask(c *gin.Context, bindJSON interface{}) ginx.Render
- func CreateUser(c *gin.Context, bindJSON interface{}) ginx.Render
- func DeleteTask(c *gin.Context, id string) ginx.Render
- func DeleteUser(c *gin.Context, id string) ginx.Render
- func GetTaskById(c *gin.Context, id string) ginx.Render
- func GetTasks(c *gin.Context, bind interface{}) ginx.Render
- func GetUserById(c *gin.Context, id string) ginx.Render
- func GetUsers(c *gin.Context, bind interface{}) ginx.Render
- func Login(c *gin.Context, bindJSON interface{}) ginx.Render
- func UpdateTask(c *gin.Context, id string, bindJSON interface{}) ginx.Render
- func UpdateUser(c *gin.Context, id string, bindJSON interface{}) ginx.Render
- type LoginInput
- type UserInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTaskById ¶
GetTaskById godoc @Summary Retrieves task based on given ID @Description get Task by ID @Produce json @Param id path integer true "Task ID" @Success 200 {object} tasks.Task @Router /api/tasks/{id} [get] @Security Authorization Token
func GetTasks ¶
GetTasks godoc @Summary Retrieves tasks based on query @Description Get Tasks @Produce json @Param taskname query string false "Taskname" @Param firstname query string false "Firstname" @Param lastname query string false "Lastname" @Success 200 {array} []tasks.Task @Router /api/tasks [get] @Security Authorization Token
func GetUserById ¶
GetUserById godoc @Summary Retrieves user based on given ID @Description get User by ID @Produce json @Param id path integer true "User ID" @Success 200 {object} users.User @Router /api/users/{id} [get] @Security Authorization Token
func GetUsers ¶
GetUsers godoc @Summary Retrieves users based on query @Description Get Users @Produce json @Param username query string false "Username" @Param firstname query string false "Firstname" @Param lastname query string false "Lastname" @Success 200 {array} []users.User @Router /api/users [get] @Security Authorization Token