Skip to content

Commit 7e8533d

Browse files
committed
update swagger docs for /grading
1 parent 72b6fb7 commit 7e8533d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/cadet_web/admin_controllers/admin_grading_controller.ex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ defmodule CadetWeb.AdminGradingController do
129129
end
130130

131131
swagger_path :index do
132-
get("/grading")
132+
get("/admin/grading")
133133

134134
summary("Get a list of all submissions with current user as the grader.")
135135

@@ -152,7 +152,7 @@ defmodule CadetWeb.AdminGradingController do
152152
end
153153

154154
swagger_path :unsubmit do
155-
post("/grading/{submissionId}/unsubmit")
155+
post("/admin/grading/{submissionId}/unsubmit")
156156
summary("Unsubmit submission. Can only be done by the Avenger of a student.")
157157
security([%{JWT: []}])
158158

@@ -167,7 +167,7 @@ defmodule CadetWeb.AdminGradingController do
167167
end
168168

169169
swagger_path :autograde_submission do
170-
post("/grading/{submissionId}/autograde")
170+
post("/admin/grading/{submissionId}/autograde")
171171
summary("Force re-autograding of an entire submission")
172172
security([%{JWT: []}])
173173

@@ -182,7 +182,7 @@ defmodule CadetWeb.AdminGradingController do
182182
end
183183

184184
swagger_path :autograde_answer do
185-
post("/grading/{submissionId}/{questionId}/autograde")
185+
post("/admin/grading/{submissionId}/{questionId}/autograde")
186186
summary("Force re-autograding of a question in a submission")
187187
security([%{JWT: []}])
188188

@@ -198,7 +198,7 @@ defmodule CadetWeb.AdminGradingController do
198198
end
199199

200200
swagger_path :show do
201-
get("/grading/{submissionId}")
201+
get("/admin/grading/{submissionId}")
202202

203203
summary("Get information about a specific submission to be graded.")
204204

@@ -217,7 +217,7 @@ defmodule CadetWeb.AdminGradingController do
217217
end
218218

219219
swagger_path :update do
220-
post("/grading/{submissionId}/{questionId}")
220+
post("/admin/grading/{submissionId}/{questionId}")
221221

222222
summary("Update marks given to the answer of a particular question in a submission.")
223223

@@ -239,7 +239,7 @@ defmodule CadetWeb.AdminGradingController do
239239
end
240240

241241
swagger_path :grading_summary do
242-
get("/grading/summary")
242+
get("/admin/grading/summary")
243243

244244
summary("Receives a summary of grading items done by this grader.")
245245

0 commit comments

Comments
 (0)