summaryrefslogtreecommitdiff
path: root/services/intervals.json
blob: f8e3aed607f173388b294577e70efbfc8e4be1f4 (plain) (blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
    "name" : "Intervals",
    "base_url" : "https://api.myintervals.com",
    "version" : "0.1",
    "formats" : ["json", "xml"],
    "authentication": true,
    "unattended_params": false,
    "meta" : {
      "documentation" : "http://www.myintervals.com/api/"
    },

    "methods": {
        "me": {
            "path": "/me",
            "method": "GET"
        },
        "client": {
            "path": "/client/",
            "method": "GET",
            "optional_params": ["active", "search", "projectsonly",
                                "offset", "limit"]
        },
        "project": {
            "path": "/project/",
            "method": "GET",
            "optional_params": ["clientid", "managerid", "name",
                                "datestart", "dateend", "search",
                                "active", "billable", "personid",
                                "offset", "limit"]
        },
        "worktype": {
            "path": "/worktype/",
            "method": "GET",
            "optional_params": ["active", "offset", "limit"]
        },
        "project_worktype": {
            "path": "/projectworktype/",
            "method": "GET",
            "required_params": ["projectid"],
            "optional_params": ["active", "personid", "offset", "limit"]
        },
        "project_module": {
            "path": "/projectmodule/",
            "method": "GET",
            "required_params": ["projectid"],
            "optional_params": ["active", "personid",
                                "offset", "limit"]
        },
        "time": {
            "path": "/time/",
            "method": "GET",
            "optional_params": ["activeonly", "moduleid", "taskid", "worktypeid",
                                "personid", "clientid", "projectid", "milestoneid",
                                "date", "datebegin", "dateend", "billable", "sortfield",
                                "sortdir", "offset", "limit"]
        },
        "add_time": {
            "path": "/time/",
            "method": "POST",
            "expected_status": [201]
        }
    }
}