Every endpoint returns JSON. Metadata responses are cached for a day, and course level responses are never cached, so that a shared cache cannot hand a course list to somebody who was not allowed to read it.
The course level data is the scheme table the calculator uses. A semester response carries the course codes, the titles, the credits and the course types, which is enough to compute an SGPA without asking the site for anything else.
Rules
- Grade scale
- O 90 to 100 is 10 points, A+ 80 to 89 is 9, A 70 to 79 is 8, B+ 60 to 69 is 7, B 55 to 59 is 6, C 50 to 54 is 5, P 40 to 49 is 4 and F below 40 is 0. The scale is the same in both schemes.
- SGPA
- SGPA is the sum of course credits times grade points, divided by the sum of the course credits of the semester. Courses with no credits are left out of the average.
- CGPA
- CGPA is the sum of semester credits times semester SGPA, divided by the sum of the semester credits. Each semester SGPA is rounded to two decimals first, the way the marks card prints it.
- Percentage
- Percentage is CGPA times ten. Regulation 22OB clause 6.7 and regulation 25OB clause 26.0 define it that way.
- Errors
- An unknown scheme, branch or semester returns a 404. The body names the missing value and nothing else, no file paths and no server detail.