package
0.0.0-20231124075818-df219f030ea5
Repository: https://github.com/hafidzurr/project1_group2_glng-ks-08.git
Documentation: pkg.go.dev

# Functions

@Summary Create a new Todo @Description Create a new Todo item @Produce json @Param todo body models.Todo true "Todo object" @Success 201 {object} models.Todo @Router /todos [post].
@Summary Delete a Todo @Description Delete a Todo by its ID @Produce json @Param id path string true "Todo ID" @Success 200 {object} map[string]string @Router /todos/{id} [delete].
@Summary Get a Todo by ID @Description Get a Todo by its ID @Produce json @Param id path string true "Todo ID" @Success 200 {object} models.Todo @Router /todos/{id} [get].
@Summary Get all Todos @Description Get a list of all Todos @Produce json @Success 200 {object} []models.Todo @Router /todos [get].
@Summary Update a Todo @Description Update a Todo by its ID @Produce json @Param id path string true "Todo ID" @Param todo body models.Todo true "Updated Todo object" @Success 200 {object} models.Todo @Router /todos/{id} [put].