MCPcopy Index your code
hub / github.com/aptly-dev/aptly / apiTasksList

Function apiTasksList

api/task.go:16–19  ·  view source on GitHub ↗

@Summary List Tasks @Description **Get list of available tasks. Each task is returned as in “show” API** @Tags Tasks @Produce json @Success 200 {array} task.Task @Router /api/tasks [get]

(c *gin.Context)

Source from the content-addressed store, hash-verified

14// @Success 200 {array} task.Task
15// @Router /api/tasks [get]
16func apiTasksList(c *gin.Context) {
17 list := context.TaskList()
18 c.JSON(200, list.GetTasks())
19}
20
21// @Summary Clear Tasks
22// @Description **Removes finished and failed tasks from internal task list**

Callers

nothing calls this directly

Calls 2

TaskListMethod · 0.80
GetTasksMethod · 0.80

Tested by

no test coverage detected