Repository navigation
API Endpoints
Hassan Moharram edited this page Jan 26, 2025
·
2 revisions
This document provides detailed information about the available APIs, their request/response structures, and examples.
GET /data/userData
{
"id": "1"
}{
"timeline": [
{
"season": "winter",
"year": 2024,
"coursecode": "COMP335"
}
],
"deficiencies": [
{
"coursepool": "2",
"creditsRequired": 3
}
],
"exemptions": [
{
"coursecode": "COMP335"
}
],
"degree": {
"id": "1",
"name": "Bachelor of Science in Computer Science",
"totalCredits": 120
}
}GET /degree/getPools
{
"degree_id": "1"
}{
"Core Courses": [
"COMP335"
],
"Electives": [
"SOEN363"
]
}GET /timeline/getAll
{
"user_id": "1"
}{
"winter 2024": [
{
"timeline_item_id": "1",
"coursecode": "COMP335"
}
]
}GET /courses/get
{
"code": "COMP335"
}{
"code": "COMP335",
"credits": 3,
"description": "Introduction to Programming",
"requisites": [
{
"type": "pre",
"code": "SOEN363",
"description": "Database Systems"
}
]
}GET /requisite/read
{
"code1": "COMP335"
}{
"message": "Requisites read successfully.",
"requisites": [
{
"id": "1",
"code1": "COMP335",
"code2": "SOEN363",
"type": "pre"
}
]
}GET /exemption/getAll
{
"user_id": "1"
}{
"message": "Exemption read successfully.",
"exemption": [
{
"id": "1",
"coursecode": "COMP335",
"user_id": "1"
}
]
}POST /auth/signup
{
"email": "example222@example.com",
"password": "pass",
"fullname": "Random User",
"type": "student"
}{
"id": "b4edb268-4f42-484b-826b-f6ab8aa2dab4"
}POST /auth/login
{
"email": "example222@example.com",
"password": "pass"
}{
"id": "b4edb268-4f42-484b-826b-f6ab8aa2dab4",
"email": "example222@example.com",
"password": "$2a$10$IoW.6LFUXlkb1K3GOgdOzON0HVF0HhQ1oMBr/5hYnZAt4SkHvzAHG",
"fullname": "Random User",
"degree": null,
"type": "student"
}