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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
// GENERATED CODE

use crate::api_default_imports::*;
use crate::education::*;

resource_api_client!(
    EducationAssignmentsApiClient,
    EducationAssignmentsIdApiClient,
    ResourceIdentity::EducationAssignments
);

impl EducationAssignmentsApiClient {
    post!(
        doc: "Create new navigation property to assignments for education",
        name: create_assignments,
        path: "/assignments",
        body: true
    );
    get!(
        doc: "List assignments of a user",
        name: list_assignments,
        path: "/assignments"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_assignments_count,
        path: "/assignments/$count"
    );
    get!(
        doc: "Invoke function delta",
        name: delta,
        path: "/assignments/delta()"
    );
}

impl EducationAssignmentsIdApiClient {
    api_client_link!(submissions, EducationAssignmentsSubmissionsApiClient);
    api_client_link_id!(submission, EducationAssignmentsSubmissionsIdApiClient);

    delete!(
        doc: "Delete navigation property assignments for education",
        name: delete_assignments,
        path: "/assignments/{{RID}}"
    );
    get!(
        doc: "Get assignments from education",
        name: get_assignments,
        path: "/assignments/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property assignments in education",
        name: update_assignments,
        path: "/assignments/{{RID}}",
        body: true
    );
    post!(
        doc: "Create new navigation property to categories for education",
        name: create_categories,
        path: "/assignments/{{RID}}/categories",
        body: true
    );
    get!(
        doc: "List categories",
        name: list_categories,
        path: "/assignments/{{RID}}/categories"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_categories_count,
        path: "/assignments/{{RID}}/categories/$count"
    );
    post!(
        doc: "Create new navigation property ref to categories for education",
        name: create_ref_categories,
        path: "/assignments/{{RID}}/categories/$ref",
        body: true
    );
    get!(
        doc: "List categories",
        name: list_ref_categories,
        path: "/assignments/{{RID}}/categories/$ref"
    );
    get!(
        doc: "Invoke function delta",
        name: delta,
        path: "/assignments/{{RID}}/categories/delta()"
    );
    delete!(
        doc: "Delete ref of navigation property categories for education",
        name: delete_ref_categories,
        path: "/assignments/{{RID}}/categories/{{id}}/$ref",
        params: education_category_id
    );
    post!(
        doc: "Invoke action publish",
        name: publish,
        path: "/assignments/{{RID}}/publish"
    );
    post!(
        doc: "Create educationAssignmentResource",
        name: create_resources,
        path: "/assignments/{{RID}}/resources",
        body: true
    );
    get!(
        doc: "List assignment resources",
        name: list_resources,
        path: "/assignments/{{RID}}/resources"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_resources_count,
        path: "/assignments/{{RID}}/resources/$count"
    );
    delete!(
        doc: "Delete navigation property resources for education",
        name: delete_resources,
        path: "/assignments/{{RID}}/resources/{{id}}",
        params: education_assignment_resource_id
    );
    get!(
        doc: "Get resources from education",
        name: get_resources,
        path: "/assignments/{{RID}}/resources/{{id}}",
        params: education_assignment_resource_id
    );
    patch!(
        doc: "Update the navigation property resources in education",
        name: update_resources,
        path: "/assignments/{{RID}}/resources/{{id}}",
        body: true,
        params: education_assignment_resource_id
    );
    delete!(
        doc: "Delete navigation property rubric for education",
        name: delete_rubric,
        path: "/assignments/{{RID}}/rubric"
    );
    get!(
        doc: "Get educationRubric attached to educationAssignment",
        name: get_rubric,
        path: "/assignments/{{RID}}/rubric"
    );
    patch!(
        doc: "Update the navigation property rubric in education",
        name: update_rubric,
        path: "/assignments/{{RID}}/rubric",
        body: true
    );
    delete!(
        doc: "Delete ref of navigation property rubric for education",
        name: delete_ref_rubric,
        path: "/assignments/{{RID}}/rubric/$ref"
    );
    get!(
        doc: "Get educationRubric attached to educationAssignment",
        name: get_ref_rubric,
        path: "/assignments/{{RID}}/rubric/$ref"
    );
    put!(
        doc: "Update the ref of navigation property rubric in education",
        name: update_ref_rubric,
        path: "/assignments/{{RID}}/rubric/$ref",
        body: true
    );
    post!(
        doc: "Invoke action setUpFeedbackResourcesFolder",
        name: set_up_feedback_resources_folder,
        path: "/assignments/{{RID}}/setUpFeedbackResourcesFolder"
    );
    post!(
        doc: "Invoke action setUpResourcesFolder",
        name: set_up_resources_folder,
        path: "/assignments/{{RID}}/setUpResourcesFolder"
    );
}