-
Post Api for login Accept: application/json Body: { "username":"user" "password":"123456" } Response: - 200 created - 400 Invalid Request
-
Post Api for signup Accept: application/json Body: { "name":"user" "username":"[email protected]" "password":"123456" } Response: - 200 created - 400 Invalid Request
-
GET Api for listing created Quiz Accept: application/json Response: { "name":"quiz-1" }
-
GET Api for listing created Assignment Accept: application/json Response: { "name":"assignment-1" }
-
Post Api for creating quiz Accept: application/json Body: { "quizName":"quiz-1" "title":"quiz-1" "question1":"What is your name" "question2":"What is your hobby" "question3":"What is your education" "question4":"What is your birthdate" "question5":"What is your gender" "answer1":"user" "answer2":"dance" "answer3":"BE" "answer4":"19/09" "answer5":"Female" } Response: - 200 created - 400 Invalid Request
-
Post Api for crearting assignment Accept: application/json Body: { "assignmentName":"quiz-1" "question1":"What is your name" "question2":"What is your hobby" "question3":"What is your education" } Response: - 200 created - 400 Invalid Request
-
GET Api for listing created quiz Accept: application/json Response: { "quizlist": [ { "quizName":"assignment-1" "quizID":"123" "question1":"What is your name" "question2":"What is your hobby" "question3":"What is your education" "question4":"What is your birthdate" "question5":"What is your gender" } ] }
-
Post Api for submitting quiz Accept: application/json Body: { "quizName":"quiz-1" username:"user" "quizID":"quiz-1" "answer1":"user" "answer2":"dance" "answer3":"BE" "answer4":"19/09" "answer5":"Female" "time":"2019-09-11-14:03" } Response: - 200 created - 400 Invalid Request
-
GET Api for listing score to user Accept: application/json Response: { "quizName":"quiz-1" "score":"5" "time":"2019-09-11-14:03" }
-
GET Api for listing score to admin for each quiz Accept: application/json Response: { "username":"quiz-1" "score":"5" "time":"2019-09-11-14:03" }
-
GET Api for listing created assignment. Accept: application/json Response: { "assignmentlist": [ { "assignmentName":"assignment-1" "assignmentId":"123" "question1":"What is your name" "question2":"What is your hobby" "question3":"What is your education" } ] }
-
GET Api for listing admin submitted assignment for each assignment. Accept: application/json Response: { "assignmentlist": [ { "assignmentURL":"https://assignment.pdf" "username":"user" "time":"2019-09-11-14:03" } ] }
-
Post Api for submitting assignment Accept: application/json FormData: { "file":"assignment.pdf" "time":"2019-09-11-14:03" "username":"user" } Response: - 200 created - 400 Invalid Request