Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an API for submitting sketches to a class #72

Open
timothycpoon opened this issue Oct 27, 2021 · 0 comments · May be fixed by #145
Open

Add an API for submitting sketches to a class #72

timothycpoon opened this issue Oct 27, 2021 · 0 comments · May be fixed by #145
Assignees
Labels
enhancement New feature or request

Comments

@timothycpoon
Copy link
Contributor

timothycpoon commented Oct 27, 2021

This would involve adding an API(s) to handler/class.go for submissions. This API would take in two PIDs (program IDs), a CID (class ID), and a UID (ID of the submitting user). For now, this API can call a mock function of the DB class which does nothing. The two PIDs correspond to the submission (student's program), and the assignment (teacher's program). The schema should match that of #97, but with the addition of the CID.

Your code should look similar to JoinClass up to line 192 or so, but with the correct inputs. The rest of the function can just be a comment or a dummy function call.

@timothycpoon timothycpoon added the enhancement New feature or request label Oct 27, 2021
@timothycpoon timothycpoon changed the title Add a field and methods for submitting sketches to a class Add an API for submitting sketches to a class Nov 2, 2021
@timothycpoon timothycpoon assigned myqng and unassigned megang33 Oct 12, 2022
@myqng myqng linked a pull request Nov 2, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
4 participants