controllers

package
v0.0.0-...-7e478f4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TodoCreate

func TodoCreate() gin.HandlerFunc

TodoCreate @Summary create a todo @Schemes @Description create a todo @Tags Todo @Accept json @Produce json @Param request body dto.CreateTodoRequest true "Create Todo Request" @Success 200 @Failure 401 @Router /todos [post]

func TodoDelete

func TodoDelete() gin.HandlerFunc

TodoDelete @Summary delete a todo @Schemes @Description delete a todo @Tags Todo @Accept json @Produce json @Param todoId path string true "Todo ID" @Success 200 @Failure 422 @Router /todos/{todoId} [delete]

func TodoIndex

func TodoIndex() gin.HandlerFunc

TodoIndex @Summary all todos @Schemes @Description All todos @Tags Todo @Accept json @Produce json @Param page query string false "Page" @Param limit query string false "Limit" @Param status query string false "Status" @Success 200 @Failure 401 @Router /todos [get]

func TodoShow

func TodoShow() gin.HandlerFunc

TodoShow @Summary todo details @Schemes @Description Todo Details @Tags Todo @Accept json @Produce json @Param todoId path string true "Todo ID" @Success 200 @Failure 401 @Router /todos/{todoId} [get]

func TodoUpdate

func TodoUpdate() gin.HandlerFunc

TodoUpdate @Summary update a todo @Schemes @Description update a todo @Tags Todo @Accept json @Produce json @Param todoId path string true "Todo ID" @Param request body dto.UpdateTodoRequest true "Update Todo Request" @Success 200 @Failure 401 @Router /todos/{todoId} [put]

Types

This section is empty.

Jump to

Keyboard shortcuts

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