Skip to content

Latest commit

 

History

History
115 lines (71 loc) · 1.97 KB

wall-e.md

File metadata and controls

115 lines (71 loc) · 1.97 KB

Content

  1. Get Submissions
  2. Get already graded submissions
  3. Grade Submissions

Back to README

1. Get Submissions

Fetches all submissions that requires grading from Canvas and stores the database.

URL : /fetch-submissions

Method : [GET, POST]

DATA :

{}

Auth required : YES
Header: { 'Authorization': 'Basic {credentials}' }

Success Response

Code : 201 Created

Content

{
    "message": "Successfully fetched new assignments from canvas"
}

2. Get already graded submissions

Fetches all submissions that have been graded, from Canvas and stores the database.

URL : /re-fetch-graded-submissions

Method : [POST]

DATA :

{
    "course": "{The Canvas Course name}",
    "assignment": "{The assignment name it should re-fetch for}",
}

Auth required : YES Header: { 'Authorization': 'Basic {credentials}' }

Success Response

Code : 201 Created

Content

{
    "message": "Successfully fetched new assignments from canvas"
}

3. Grade Submissions

Gets all the tested submissions from the database and reports them to Canvas. If know error code is encountered during testing, the grade U will be sent to Canvas.

URL : /wall-e/grade

Method : [GET, POST]

DATA :

{}

Auth required : YES
Header: { 'Authorization': 'Basic {credentials}' }

Success Response

Code : 200 OK

Content examples

{
    "message": "Canvas has been updated with the new grades."
}

Incorrect Response

The server might have a penging request to grade a submission. To avoid conflicts this will cancel the request.

Code: 423 Locked

Content examples

{
    "message": "Wall-E is busy, try again in a few minutes"
}