-
Notifications
You must be signed in to change notification settings - Fork 3
/
get-api-endpoints.ts
34 lines (32 loc) · 934 Bytes
/
get-api-endpoints.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export { API_ENDPOINTS };
const API_ENDPOINTS = {
ticktickServer: 'ticktick.com',
protocol: "https://",
apiProtocol: "https://api.",
apiVersion: '/api/v2',
signInEndPoint: 'user/signon?wc=true&remember=true',
userPreferencesEndPoint: 'user/preferences/settings',
allProjectsEndPoint: 'projects',
allHabitsEndPoint: 'habits',
allTagsEndPoint: 'tags',
allTasksEndPoint: 'batch/check/',
TaskEndPoint: 'task',
updateTaskEndPoint: 'batch/task',
//If this ever existed, it's gone now. use getSections. That's the only project detail anyway.
//getProject: 'project/',
getSections: 'column/project/',
getAllCompletedItems: "project/all/completedInAll/",
exportData: 'data/export',
projectMove: 'batch/taskProject',
parentMove: `batch/taskParent`
};
/*
/batch/taskProject
/batch/task
/task?+query
/projects
/user/status
/project/all/trash/pagination?start=
/project/all/completedInAll/
/habits/batch
*/