Skip to content

Commit

Permalink
Merge pull request #5300 from BWindey/update-api-submissions
Browse files Browse the repository at this point in the history
Add course specific url and exercise name to submission json api
  • Loading branch information
jorg-vr authored Jan 16, 2024
2 parents b4228b9 + b4d6386 commit a90830b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/submissions/_submission_basic.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ else
json.user user_url(submission.user.id, format: :json)
end
json.has_annotations submission.annotated?
json.exercise activity_url(submission.exercise, format: :json)
json.exercise activity_scoped_url(activity: submission.exercise, course: submission.course, options: { format: :json })
json.course course_url(submission.course, format: :json) if submission.course

0 comments on commit a90830b

Please sign in to comment.