Skip to content

Latest commit

 

History

History
92 lines (57 loc) · 1.44 KB

eve.md

File metadata and controls

92 lines (57 loc) · 1.44 KB

Content

  1. Test Submissions
  2. Reset the database (Temporary)

Back to README

1. Test Submissions

Fetches all ungraded submissions from the database and test them.

URL : /eve/grade

Method : [GET, POST]

DATA :

{}

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

Success Response

Code : 200 OK

Content

{
    "message": "All new assignments has been corrected"
}

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": "Eve is busy, try again in a few minutes"
}

2. Reset the database (Temporary)

Resets the database, adds a user to login as, adds the test course and resets the submission table.

URL : /eve/reset

Method : [GET, POST]

DATA :

{}

Auth required : NO

Success Response

Code : 200 OK

Content examples

{
    "message": "Submission and Course table has been reset with dummy data"
}

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": "Eve is busy, try again in a few minutes"
}