graph_rs_sdk/education/education_assignments_submissions/
request.rs1use crate::api_default_imports::*;
4
5api_client!(
6 EducationAssignmentsSubmissionsApiClient,
7 EducationAssignmentsSubmissionsIdApiClient,
8 ResourceIdentity::EducationAssignmentsSubmissions
9);
10
11impl EducationAssignmentsSubmissionsApiClient {
12 post!(
13 doc: "Create new navigation property to submissions for education",
14 name: create_submissions,
15 path: "/submissions",
16 body: true
17 );
18 get!(
19 doc: "List submissions",
20 name: list_submissions,
21 path: "/submissions"
22 );
23 get!(
24 doc: "Get the number of the resource",
25 name: get_submissions_count,
26 path: "/submissions/$count"
27 );
28}
29
30impl EducationAssignmentsSubmissionsIdApiClient {
31 delete!(
32 doc: "Delete navigation property submissions for education",
33 name: delete_submissions,
34 path: "/submissions/{{RID}}"
35 );
36 get!(
37 doc: "Get submissions from education",
38 name: get_submissions,
39 path: "/submissions/{{RID}}"
40 );
41 patch!(
42 doc: "Update the navigation property submissions in education",
43 name: update_submissions,
44 path: "/submissions/{{RID}}",
45 body: true
46 );
47 post!(
48 doc: "Create educationFeedbackResourceOutcome",
49 name: create_outcomes,
50 path: "/submissions/{{RID}}/outcomes",
51 body: true
52 );
53 get!(
54 doc: "List outcomes",
55 name: list_outcomes,
56 path: "/submissions/{{RID}}/outcomes"
57 );
58 get!(
59 doc: "Get the number of the resource",
60 name: get_outcomes_count,
61 path: "/submissions/{{RID}}/outcomes/$count"
62 );
63 delete!(
64 doc: "Delete navigation property outcomes for education",
65 name: delete_outcomes,
66 path: "/submissions/{{RID}}/outcomes/{{id}}",
67 params: education_outcome_id
68 );
69 get!(
70 doc: "Get outcomes from education",
71 name: get_outcomes,
72 path: "/submissions/{{RID}}/outcomes/{{id}}",
73 params: education_outcome_id
74 );
75 patch!(
76 doc: "Update the navigation property outcomes in education",
77 name: update_outcomes,
78 path: "/submissions/{{RID}}/outcomes/{{id}}",
79 body: true,
80 params: education_outcome_id
81 );
82 post!(
83 doc: "Invoke action reassign",
84 name: reassign,
85 path: "/submissions/{{RID}}/reassign"
86 );
87 post!(
88 doc: "Create educationSubmissionResource",
89 name: create_resources,
90 path: "/submissions/{{RID}}/resources",
91 body: true
92 );
93 get!(
94 doc: "List submission resources",
95 name: list_resources,
96 path: "/submissions/{{RID}}/resources"
97 );
98 get!(
99 doc: "Get the number of the resource",
100 name: get_resources_count,
101 path: "/submissions/{{RID}}/resources/$count"
102 );
103 delete!(
104 doc: "Delete navigation property resources for education",
105 name: delete_resources,
106 path: "/submissions/{{RID}}/resources/{{id}}",
107 params: education_submission_resource_id
108 );
109 get!(
110 doc: "Get resources from education",
111 name: get_resources,
112 path: "/submissions/{{RID}}/resources/{{id}}",
113 params: education_submission_resource_id
114 );
115 patch!(
116 doc: "Update the navigation property resources in education",
117 name: update_resources,
118 path: "/submissions/{{RID}}/resources/{{id}}",
119 body: true,
120 params: education_submission_resource_id
121 );
122 post!(
123 doc: "Invoke action return",
124 name: submissions_return,
125 path: "/submissions/{{RID}}/return"
126 );
127 post!(
128 doc: "Invoke action setUpResourcesFolder",
129 name: set_up_resources_folder,
130 path: "/submissions/{{RID}}/setUpResourcesFolder"
131 );
132 post!(
133 doc: "Invoke action submit",
134 name: submit,
135 path: "/submissions/{{RID}}/submit"
136 );
137 post!(
138 doc: "Create new navigation property to submittedResources for education",
139 name: create_submitted_resources,
140 path: "/submissions/{{RID}}/submittedResources",
141 body: true
142 );
143 get!(
144 doc: "List submittedResources",
145 name: list_submitted_resources,
146 path: "/submissions/{{RID}}/submittedResources"
147 );
148 get!(
149 doc: "Get the number of the resource",
150 name: get_submitted_resources_count,
151 path: "/submissions/{{RID}}/submittedResources/$count"
152 );
153 delete!(
154 doc: "Delete navigation property submittedResources for education",
155 name: delete_submitted_resources,
156 path: "/submissions/{{RID}}/submittedResources/{{id}}",
157 params: education_submission_resource_id
158 );
159 get!(
160 doc: "Get submittedResources from education",
161 name: get_submitted_resources,
162 path: "/submissions/{{RID}}/submittedResources/{{id}}",
163 params: education_submission_resource_id
164 );
165 patch!(
166 doc: "Update the navigation property submittedResources in education",
167 name: update_submitted_resources,
168 path: "/submissions/{{RID}}/submittedResources/{{id}}",
169 body: true,
170 params: education_submission_resource_id
171 );
172 post!(
173 doc: "Invoke action unsubmit",
174 name: unsubmit,
175 path: "/submissions/{{RID}}/unsubmit"
176 );
177}