graph_rs_sdk/education/education_assignments/
request.rs1use crate::api_default_imports::*;
4use crate::education::*;
5
6api_client!(
7 EducationAssignmentsApiClient,
8 EducationAssignmentsIdApiClient,
9 ResourceIdentity::EducationAssignments
10);
11
12impl EducationAssignmentsApiClient {
13 post!(
14 doc: "Create new navigation property to assignments for education",
15 name: create_assignments,
16 path: "/assignments",
17 body: true
18 );
19 get!(
20 doc: "List assignments of a user",
21 name: list_assignments,
22 path: "/assignments"
23 );
24 get!(
25 doc: "Get the number of the resource",
26 name: get_assignments_count,
27 path: "/assignments/$count"
28 );
29 get!(
30 doc: "Invoke function delta",
31 name: delta,
32 path: "/assignments/delta()"
33 );
34}
35
36impl EducationAssignmentsIdApiClient {
37 api_client_link!(submissions, EducationAssignmentsSubmissionsApiClient);
38 api_client_link_id!(submission, EducationAssignmentsSubmissionsIdApiClient);
39
40 delete!(
41 doc: "Delete navigation property assignments for education",
42 name: delete_assignments,
43 path: "/assignments/{{RID}}"
44 );
45 get!(
46 doc: "Get assignments from education",
47 name: get_assignments,
48 path: "/assignments/{{RID}}"
49 );
50 patch!(
51 doc: "Update the navigation property assignments in education",
52 name: update_assignments,
53 path: "/assignments/{{RID}}",
54 body: true
55 );
56 post!(
57 doc: "Create new navigation property to categories for education",
58 name: create_categories,
59 path: "/assignments/{{RID}}/categories",
60 body: true
61 );
62 get!(
63 doc: "List categories",
64 name: list_categories,
65 path: "/assignments/{{RID}}/categories"
66 );
67 get!(
68 doc: "Get the number of the resource",
69 name: get_categories_count,
70 path: "/assignments/{{RID}}/categories/$count"
71 );
72 post!(
73 doc: "Create new navigation property ref to categories for education",
74 name: create_ref_categories,
75 path: "/assignments/{{RID}}/categories/$ref",
76 body: true
77 );
78 get!(
79 doc: "List categories",
80 name: list_ref_categories,
81 path: "/assignments/{{RID}}/categories/$ref"
82 );
83 get!(
84 doc: "Invoke function delta",
85 name: delta,
86 path: "/assignments/{{RID}}/categories/delta()"
87 );
88 delete!(
89 doc: "Delete ref of navigation property categories for education",
90 name: delete_ref_categories,
91 path: "/assignments/{{RID}}/categories/{{id}}/$ref",
92 params: education_category_id
93 );
94 post!(
95 doc: "Invoke action publish",
96 name: publish,
97 path: "/assignments/{{RID}}/publish"
98 );
99 post!(
100 doc: "Create educationAssignmentResource",
101 name: create_resources,
102 path: "/assignments/{{RID}}/resources",
103 body: true
104 );
105 get!(
106 doc: "List assignment resources",
107 name: list_resources,
108 path: "/assignments/{{RID}}/resources"
109 );
110 get!(
111 doc: "Get the number of the resource",
112 name: get_resources_count,
113 path: "/assignments/{{RID}}/resources/$count"
114 );
115 delete!(
116 doc: "Delete navigation property resources for education",
117 name: delete_resources,
118 path: "/assignments/{{RID}}/resources/{{id}}",
119 params: education_assignment_resource_id
120 );
121 get!(
122 doc: "Get resources from education",
123 name: get_resources,
124 path: "/assignments/{{RID}}/resources/{{id}}",
125 params: education_assignment_resource_id
126 );
127 patch!(
128 doc: "Update the navigation property resources in education",
129 name: update_resources,
130 path: "/assignments/{{RID}}/resources/{{id}}",
131 body: true,
132 params: education_assignment_resource_id
133 );
134 delete!(
135 doc: "Delete navigation property rubric for education",
136 name: delete_rubric,
137 path: "/assignments/{{RID}}/rubric"
138 );
139 get!(
140 doc: "Get educationRubric attached to educationAssignment",
141 name: get_rubric,
142 path: "/assignments/{{RID}}/rubric"
143 );
144 patch!(
145 doc: "Update the navigation property rubric in education",
146 name: update_rubric,
147 path: "/assignments/{{RID}}/rubric",
148 body: true
149 );
150 delete!(
151 doc: "Delete ref of navigation property rubric for education",
152 name: delete_ref_rubric,
153 path: "/assignments/{{RID}}/rubric/$ref"
154 );
155 get!(
156 doc: "Get educationRubric attached to educationAssignment",
157 name: get_ref_rubric,
158 path: "/assignments/{{RID}}/rubric/$ref"
159 );
160 put!(
161 doc: "Update the ref of navigation property rubric in education",
162 name: update_ref_rubric,
163 path: "/assignments/{{RID}}/rubric/$ref",
164 body: true
165 );
166 post!(
167 doc: "Invoke action setUpFeedbackResourcesFolder",
168 name: set_up_feedback_resources_folder,
169 path: "/assignments/{{RID}}/setUpFeedbackResourcesFolder"
170 );
171 post!(
172 doc: "Invoke action setUpResourcesFolder",
173 name: set_up_resources_folder,
174 path: "/assignments/{{RID}}/setUpResourcesFolder"
175 );
176}