Commit 233e9a09 by Stephen Sanchez

Few extra minor changes to the api.

parent d066182f
...@@ -80,8 +80,10 @@ def create_submission(student_item_dict, answer, submitted_at=None, ...@@ -80,8 +80,10 @@ def create_submission(student_item_dict, answer, submitted_at=None,
dict: A representation of the created Submission. dict: A representation of the created Submission.
Raises: Raises:
SubmissionRequestError: Raised when information regarding the student SubmissionRequestError: Raised when there are validation errors for the
item fails validation. student item or submission. This can be caused by the student item
missing required values, the submission being too long, the
attempt_number is negative, or the given submitted_at time is invalid.
SubmissionInternalError: Raised when submission access causes an SubmissionInternalError: Raised when submission access causes an
internal error. internal error.
...@@ -138,9 +140,8 @@ def get_submissions(student_item_dict, limit=None): ...@@ -138,9 +140,8 @@ def get_submissions(student_item_dict, limit=None):
thrown if no submission is found relative to this location. thrown if no submission is found relative to this location.
Args: Args:
student_item_dict (dict): The location of the problem student_item_dict (dict): The location of the problem this submission is
this submission is associated with, as defined by a course, student, associated with, as defined by a course, student, and item.
and item.
limit (int): Optional parameter for limiting the returned number of limit (int): Optional parameter for limiting the returned number of
submissions associated with this student item. If not specified, all submissions associated with this student item. If not specified, all
associated submissions are returned. associated submissions are returned.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment