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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// GENERATED CODE

use crate::api_default_imports::*;
use crate::users::*;

resource_api_client!(
    TodoListsApiClient,
    TodoListsIdApiClient,
    ResourceIdentity::TodoLists
);

impl TodoListsApiClient {
    post!(
        doc: "Create todoTaskList",
        name: create_lists,
        path: "/lists",
        body: true
    );
    get!(
        doc: "List lists",
        name: list_lists,
        path: "/lists"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_lists_count,
        path: "/lists/$count"
    );
    get!(
        doc: "Invoke function delta",
        name: delta,
        path: "/lists/delta()"
    );
}

impl TodoListsIdApiClient {
    api_client_link!(tasks, TodoListsTasksApiClient);
    api_client_link_id!(task, TodoListsTasksIdApiClient);

    delete!(
        doc: "Delete navigation property lists for users",
        name: delete_lists,
        path: "/lists/{{RID}}"
    );
    get!(
        doc: "Get lists from users",
        name: get_lists,
        path: "/lists/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property lists in users",
        name: update_lists,
        path: "/lists/{{RID}}",
        body: true
    );
    post!(
        doc: "Create new navigation property to extensions for users",
        name: create_extensions,
        path: "/lists/{{RID}}/extensions",
        body: true
    );
    get!(
        doc: "Get extensions from users",
        name: list_extensions,
        path: "/lists/{{RID}}/extensions"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_extensions_count,
        path: "/lists/{{RID}}/extensions/$count"
    );
    delete!(
        doc: "Delete navigation property extensions for users",
        name: delete_extensions,
        path: "/lists/{{RID}}/extensions/{{id}}",
        params: extension_id
    );
    get!(
        doc: "Get extensions from users",
        name: get_extensions,
        path: "/lists/{{RID}}/extensions/{{id}}",
        params: extension_id
    );
    patch!(
        doc: "Update the navigation property extensions in users",
        name: update_extensions,
        path: "/lists/{{RID}}/extensions/{{id}}",
        body: true,
        params: extension_id
    );
}