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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// GENERATED CODE

use crate::api_default_imports::*;

resource_api_client!(
    ThreadsPostsApiClient,
    ThreadsPostsIdApiClient,
    ResourceIdentity::ThreadsPosts
);

impl ThreadsPostsApiClient {
    get!(
        doc: "List posts",
        name: list_posts,
        path: "/posts"
    );
    get!(
        doc: "Get the number of the resource",
        name: posts_fcff,
        path: "/posts/$count"
    );
}

impl ThreadsPostsIdApiClient {
    get!(
        doc: "Get posts from groups",
        name: get_posts,
        path: "/posts/{{RID}}"
    );
    post!(
        doc: "Create new navigation property to attachments for groups",
        name: create_attachments,
        path: "/posts/{{RID}}/attachments",
        body: true
    );
    get!(
        doc: "List attachments",
        name: list_attachments,
        path: "/posts/{{RID}}/attachments"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_attachments_count,
        path: "/posts/{{RID}}/attachments/$count"
    );
    post!(
        doc: "Invoke action createUploadSession",
        name: create_upload_session,
        path: "/posts/{{RID}}/attachments/createUploadSession",
        body: true
    );
    delete!(
        doc: "Delete navigation property attachments for groups",
        name: delete_attachments,
        path: "/posts/{{RID}}/attachments/{{id}}",
        params: attachment_id
    );
    get!(
        doc: "Get attachments from groups",
        name: get_attachments,
        path: "/posts/{{RID}}/attachments/{{id}}",
        params: attachment_id
    );
    post!(
        doc: "Create new navigation property to extensions for groups",
        name: create_extensions,
        path: "/posts/{{RID}}/extensions",
        body: true
    );
    get!(
        doc: "Get extensions from groups",
        name: list_extensions,
        path: "/posts/{{RID}}/extensions"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_extensions_count,
        path: "/posts/{{RID}}/extensions/$count"
    );
    delete!(
        doc: "Delete navigation property extensions for groups",
        name: delete_extensions,
        path: "/posts/{{RID}}/extensions/{{id}}",
        params: extension_id
    );
    get!(
        doc: "Get extensions from groups",
        name: get_extensions,
        path: "/posts/{{RID}}/extensions/{{id}}",
        params: extension_id
    );
    patch!(
        doc: "Update the navigation property extensions in groups",
        name: update_extensions,
        path: "/posts/{{RID}}/extensions/{{id}}",
        body: true,
        params: extension_id
    );
    post!(
        doc: "Invoke action forward",
        name: forward,
        path: "/posts/{{RID}}/forward",
        body: true
    );
    post!(
        doc: "Invoke action reply",
        name: reply,
        path: "/posts/{{RID}}/reply",
        body: true
    );
}