Please use Headphone
https://drive.google.com/file/d/1QRRqPonWXIsXiBVQQe37q11NzecoP5jo/view?usp=drive_link
step 1 : git clone https://github.com/Rautrao/API-DEV.git
step 2 : cd API-DEV
step 3 : npm install
step 4 : add .env file to the project which contains connection string of his/her mongoDB atlas account stored in a variable named MONGO_URI. I have included a .env.example file which contains the template of link with < to-Be-Filled-With-Personal-Account-Details > ,
step 5 : save the files
step 6 : npm start
#Runs on: localhost:3000
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/tasks/courses |
Get all courses |
| POST | /api/v1/tasks/courses |
Add new course |
| GET | /api/v1/tasks/course/:id |
Get course by ID |
| PATCH | /api/v1/tasks/course/:id |
Update course |
| DELETE | /api/v1/tasks/course/:id |
Delete course |
| GET | /api/v1/tasks/faculties |
Get all faculties |
| POST | /api/v1/tasks/faculties |
Add new faculty |
| GET | /api/v1/tasks/faculty/:id |
Get faculty by ID |
| PATCH | /api/v1/tasks/faculty/:id |
Update faculty |
| DELETE | /api/v1/tasks/faculty/:id |
Delete faculty |
- Course :
{
"id": "CSE201",
"name": "Data Structures and Algorithms",
"code": "CSE201",
"description": "Covers fundamental data structures and algorithmic techniques used in solving problems.",
"credits": 4,
"department": "Computer Science",
"prerequisites": [],
"faculty_id": "F102"
} - Faculty :
{
"id": "F106",
"first_name": "Nikhil",
"last_name": "Bansal",
"email": "nikhil.bansal@iiitdm.ac.in",
"department": "Computer Science",
"specialization": ["Machine Learning", "Artificial Intelligence"],
"office_location": "Block B - Room 308",
"office_hours": "Tue/Thu 1-3PM"
}