-
List of Departments of Quiz
- /quiz/departments
- GET
- {
- departmentName: '',
- departmentId: '' }
-
List of Quizzes by department
- /quiz/departments
- POST
- Request: {
- deptId: '' }
- Response: [
{
- quizName: '',
- quizId: '',
- startTime: DATE,
- endTime: DATE } ]
-
Retrieve Questions
- /quiz/questions
- POST
-
- quizId: '' }
- Response:
- {errorCode: 1} // Time is not right
- {errorCode: 2} // Player has already played
- {
errorCode: 0,
questions: [
{
- questionId: ''
- questionName: '',
- option1:
- option4: }] }
-
Post Answer
- /quiz/submit
- POST
- Request: {
answers: [ {
- questionId: '',
- answer: INT }]
- Response: { score: INT } }
- Get Leaderboard
- /quiz/leaderboard
- POST
- Request: {
- quizId: '', }
- Response: [
{
- name: '',
- image: url(string) } ]
__________________________________________________________________-
-
Sign Up
- /auth/signup
- POST
- Request: {
- name: '',
- image: ''
- college: ''
- phone: INT
- rollNumber: '' }
- Response: {
- token: '' // Set this as header for all future requests
- errorCode: 0 } // If everything is valid // If there is some problem
- {
- errorCode: 1 }
-
Edit Profile
- /auth/profile
- POST
- Same as Sign Up
-
Get Profile
- /auth/profile
- GET
- Response: {
- name: '',
- image: ''
- campusAmbassador: boolean
- college: ''
- phone: INT
- rollNumber: '' }
-
Add Campus Ambassador -/auth/campusAmbassador
- POST
- Request: {
- username: '',
- password: '', }
- Response: {
- errorCode: INT // 0 for that person is a campus Ambassador // 1 for else }
-
Campus Ambassador Uploads
- POST
- Request: {
- url: '', // check for uniqueness
- source: '' }
-
Get Core Team
- /coreTeam
- GET
- Response: {
- name: '',
- position: '',
- image: '' }
-
Get Department Events
- /departmentEvents
- GET
- Response: {
- name: '',
- info: '',
- venue: '',
- date: DATE,
- image: '',
- regUrl: '', }
-
Get Institute Events
- /institueEvents
- GET
- Response: {
- name: '',
- info: '',
- venue: '',
- date: DATE,
- image: '',
- regUrl: '', }
-
Get Talks
- /talks
- GET
- Response: {
- name: '',
- info: '',
- venue: '',
- date: DATE,
- image: '',
- regUrl: '', }
-
Post Talks
- /talks
- POST
- Request: {
- name: '',
- info: '',
- venue: '',
- date: DATE,
- image: '',
- regUrl: '', }
- Response: {
- message: '' //success for ok, status code 200 //failure for fail, any other status code }
-
Get Exhibitions
- /exhibitions
- GET
- Response: {
- name: '',
- info: '',
- venue: '',
- date: DATE,
- image: '',
- regUrl: '', }
-
Post Exhibition
- /exhibitions
- POST
- Request: {
- name: '',
- info: '',
- venue: '',
- date: DATE,
- image: '',
- regUrl: '', }
- Response: {
- message: '' //success for ok, status code 200 //failure for fail, any other status code }
-
Get Workshops
- /workshops
- GET
- Response: {
- name: '',
- info: '',
- venue: '',
- date: DATE,
- image: '',
- regUrl: '',
- type: INT, }
-
Post Workshops
- /workshops
- POST
- Request: {
- name: '',
- info: '',
- venue: '',
- date: DATE,
- image: '',
- regUrl: '', }
- Response: {
- message: '' //success for ok, status code 200 //failure for fail, any other status code }
___________________________________________________________________________-