Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live Demonstration Video

Please use Headphone
https://drive.google.com/file/d/1QRRqPonWXIsXiBVQQe37q11NzecoP5jo/view?usp=drive_link

Setup Instructions

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

Endpoint Rreference

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

Data Model

  • 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"
    }

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages