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
use crate::api_default_imports::*;
use crate::drives::*;

impl DrivesIdApiClient {
    post!(
        doc: "Create drive item in root of drive",
        name: create_root_folder,
        path: "/drives/{{RID}}/root/children",
        body: true
    );
    get!(
        doc: "Invoke function delta",
        name: delta,
        path: "/drives/{{RID}}/root/delta()"
    );
    get!(
        doc: "Invoke function delta",
        name: delta_token,
        path: "/drives/{{RID}}/root/delta(token='{{id}}')",
        params: token
    );
}

impl DrivesItemsIdApiClient {
    post!(
        name: create_folder,
        path: "/items/{{RID}}/children",
        body: true
    );
    put!(
        name: upload_items_content,
        path: "items/{{RID}}{{id}}/content",
        body: true,
        params: file_name
    );
}