<filename>tests/fixtures/submission.json
{
	"create_submission_peer_review": {
		"method": "POST",
		"endpoint": "courses/1/assignments/1/submissions/1/peer_reviews",
		"data": {
			"assessor_id": 23,
			"asset_id": 13,
			"id": 1,
			"user_id": 7
		},
		"status_code": 200
	},
	"complete": {
		"method": "POST",
		"endpoint": "courses/1/quizzes/1/submissions/1/complete",
		"data": {
			"quiz_submissions": [
				{
					"id": 1,
					"quiz_id": 1,
					"quiz_version": 1,
					"user_id": 1,
					"attempt": 1,
					"validation_token": "<PASSWORD> validation token",
					"score": 1
				}
			]
		},
		"status_code": 200
	},
	"delete_submission_peer_review": {
		"method": "DELETE",
		"endpoint": "courses/1/assignments/1/submissions/1/peer_reviews",
		"data": {
			"assessor_id": 23,
			"asset_id": 13,
			"id": 1,
			"user_id": 7
		},
		"status_code": 200
	},
	"get_by_id_course": {
		"method": "GET",
		"endpoint": "courses/1/assignments/1/submissions/1",
		"data": {
			"id": 1,
			"assignment_id": 1,
			"user_id": 1,
			"html_url": "https://example.com/courses/1/assignments/1/submissions/1",
			"submission_type": "online_upload"
		},
		"status_code": 200
	},
	"get_by_id_section": {
		"method": "GET",
		"endpoint": "sections/1/assignments/1/submissions/1",
		"data": {
				"id": 1,
				"assignment_id": 1,
				"user_id": 1,
				"html_url": "https://example.com/sections/1/assignments/1/submissions/1",
				"submission_type": "online_upload"
		},
		"status_code": 200
	},
	"get_times": {
		"method": "GET",
		"endpoint": "courses/1/quizzes/1/submissions/1/time",
		"data": {
		    "end_at": "9999-99-99T59:59:59Z",
		    "time_left": 0
		},
		"status_code": 200
	},
	"list_submissions": {
		"method": "GET",
		"endpoint": "courses/1/assignments/1/submissions",
		"data": [
			{
				"id": 1,
				"assignments_id": 1,
				"user_id": 1,
				"html_url": "https://example.com/courses/1/assignments/1/submissions/1",
				"submission_type": "online_upload"
			},
			{
				"id": 2,
				"assignments_id": 1,
				"user_id": 2,
				"html_url": "https://example.com/courses/1/assignments/1/submissions/2",
				"submission_type": "online_upload"
			}
		],
		"status_code": 200
	},
	"list_submission_peer_reviews": {
		"method": "GET",
		"endpoint": "courses/1/assignments/1/submissions/1/peer_reviews",
		"data": [
			{
				"assessor_id": 23,
				"asset_id": 13,
				"id": 1,
				"user_id": 7
			},
			{
				"assessor_id": 24,
				"asset_id": 14,
				"id": 2,
				"user_id": 8
			}
		],
		"status_code": 200
	},
	"update_score_and_comments": {
		"method": "PUT",
		"endpoint": "courses/1/quizzes/1/submissions/1",
		"data": {
			"quiz_submissions": [
				{
					"id": 1,
					"quiz_id": 1,
					"quiz_version": 1,
					"user_id": 1,
					"attempt": 1,
					"validation_token": "<PASSWORD>",
					"score": 7
				}
			]
		},
		"status_code": 200
	},
	"upload_comment": {
		"method": "POST",
		"endpoint": "courses/1/assignments/1/submissions/1/comments/files",
		"data": {
			"upload_url": "https://example.com/api/v1/files/upload_response_upload_url",
			"upload_params": {
				"some_param": "param123",
				"a_different_param": "param456"
			}
		}
	},
	"upload_comment_final": {
		"method": "POST",
		"endpoint": "files/upload_response_upload_url",
		"data": {
			"url": "great_url_success",
			"id": 1
		}
	},
	"edit": {
		"method": "PUT",
		"endpoint": "courses/1/assignments/1/submissions/1",
		"data": {
			"id": 1,
			"assignments_id": 1,
			"user_id": 1,
			"html_url": "https://example.com/courses/1/assignments/1/submissions/1",
			"submission_type": "online_upload",
			"excused": true
		},
		"status_code": 200
	},
	"get_submission_questions": {
		"method": "GET",
		"endpoint": "quiz_submissions/1/questions",
		"data": {
			"quiz_submission_questions": [
				{
					"id": 1,
					"flagged": true,
					"answer": null,
					"answers": null
				}
			]
		}
	},
	"answer_submission_questions": {
		"method": "POST",
		"endpoint": "quiz_submissions/1/questions",
		"data": {
			"quiz_submission_questions": [
				{
					"id": 1,
					"flagged": true,
					"answer": null,
					"answers": null
				}
			]
		}
	},
	"flag_submission_question": {
		"method": "PUT",
		"endpoint": "quiz_submissions/1/questions/1/flag",
		"data": {
			"quiz_submission_questions": [
				{
					"id": 1,
					"flagged": true,
					"answer": null,
					"answers": null
				}
			]
		}
	},
	"unflag_submission_question": {
		"method": "PUT",
		"endpoint": "quiz_submissions/1/questions/1/unflag",
		"data": {
			"quiz_submission_questions": [
				{
					"id": 1,
					"flagged": false,
					"answer": null,
					"answers": null
				}
			]
		}
	}
}
