/get_subjects.php GET 3 All

This will fetch list of all subjects with its marks, in order of their percentage for an user. Also will show the overall average score percentage

Request     Test

Parameter Type Description
stud_id number this is the id of the user.
pass string this is the user's password.

Response Auth Error

{
   "code":351,
   "msg":"User is unauthorized"
}

Response Param Error

{
   "code":-9999,
   "msg":"Parameter Error"
}

Response Success

{
   "code":202,
   "response":[
      {
         "average":"96.333333",
         "sub_id":"50",
         "subject_name":"Computer",
         "term_id":"24",
         "term_name":"Semester 2"
      },
      {
         "average":"92.333333",
         "sub_id":"49",
         "subject_name":"Chemistry",
         "term_id":"24",
         "term_name":"Semester 2"
      },
      {
         "average":"83.666667",
         "sub_id":"51",
         "subject_name":"Biology",
         "term_id":"24",
         "term_name":"Semester 2"
      },
      {
         "average":"82.666667",
         "sub_id":"45",
         "subject_name":"Physics",
         "term_id":"23",
         "term_name":"Semester 1"
      },
      {
         "average":"82.000000",
         "sub_id":"48",
         "subject_name":"English",
         "term_id":"24",
         "term_name":"Semester 2"
      },
      {
         "average":"77.666667",
         "sub_id":"46",
         "subject_name":"Maths",
         "term_id":"23",
         "term_name":"Semester 1"
      },
      {
         "average":"74.666667",
         "sub_id":"47",
         "subject_name":"Mechanics",
         "term_id":"23",
         "term_name":"Semester 1"
      }
   ],
   "average":{
      "code":202,
      "response":"84.19047619"
   }
}