github.com/tada-team/tdproto@v1.51.57/codegen/api_paths/task.go (about) 1 package api_paths 2 3 import ( 4 "github.com/tada-team/tdproto/tdapi" 5 ) 6 7 var TaskPaths = []PathSpec{ 8 { 9 Path: "/api/v4/teams/{team_id}/tasks", 10 Post: &OperationSpec{ 11 Request: tdapi.Task{}, 12 Response: tdapi.Task{}, 13 Description: "Create new task", 14 }, 15 Get: &OperationSpec{ 16 QueryStruct: tdapi.TaskFilter{}, 17 Response: []tdapi.Task{}, 18 Description: "Get the list of tasks", 19 }, 20 }, 21 { 22 Path: "/api/v4/teams/{team_id}/tasks/{task_id}", 23 Get: &OperationSpec{ 24 Response: tdapi.Task{}, 25 Description: "Get task", 26 }, 27 Post: &OperationSpec{ 28 Request: tdapi.Task{}, 29 Response: tdapi.Task{}, 30 Description: "Update task", 31 }, 32 Delete: &OperationSpec{ 33 Response: tdapi.Task{}, 34 Description: "Delete task", 35 }, 36 }, 37 }