Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TaskCreate ¶
func TaskCreate() gin.HandlerFunc
TaskCreate @Summary create a task @Schemes @Description create a task @Tags Task @Accept json @Produce json @Param request body dto.CreateTaskRequest true "Create Task Request" @Success 200 @Failure 401 @Router /tasks [post]
func TaskDelete ¶
func TaskDelete() gin.HandlerFunc
TaskDelete @Summary delete a task @Schemes @Description delete a task @Tags Task @Accept json @Produce json @Param todoId path string true "Task ID" @Success 200 @Failure 422 @Router /tasks/{taskId} [delete]
func TaskIndex ¶
func TaskIndex() gin.HandlerFunc
TaskIndex @Summary all tasks @Schemes @Description All tasks @Tags Task @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 /tasks [get]
func TaskShow ¶
func TaskShow() gin.HandlerFunc
TaskShow @Summary task details @Schemes @Description Task Details @Tags Task @Accept json @Produce json @Param taskId path string true "Task ID" @Success 200 @Failure 401 @Router /tasks/{taskId} [get]
func TaskUpdate ¶
func TaskUpdate() gin.HandlerFunc
TaskUpdate @Summary update a task @Schemes @Description update a task @Tags Task @Accept json @Produce json @Param taskId path string true "Task ID" @Param request body dto.UpdateTodoRequest true "Update Task Request" @Success 200 @Failure 401 @Router /tasks/{taskId} [put]
Types ¶
This section is empty.