generate API for courses and Students and connect the response to mongoDB with mongoos
To run project , run the following command
npm run start
Client: javaScript , Bootstrap
Server: Node, Express
MongoDB: MongoDB atles
bandicam.2023-03-12.12-48-40-505.mp4
Method | EndPoint |
---|---|
GET | /courses get all courses |
GET | /courses/{courseId} get course by id |
POST | /courses create course |
DELETE | /courses/{courseId} delete course by id |
PATCH | /courses/{courseId} edit course by id |
Method | EndPoint |
---|---|
GET | /students get all students |
GET | /students/{studentId} get student by id |
POST | /students create student |
DELETE | /students/{studentId} delete student by id |
PATCH | /students/{studentId} edit student by id |
{
"name":"hager",
"age":23,
"dept": "open source"
}
{
"name":"Node-js",
"instructorName":"Hager",
"duration":42
}
- Authentication
- Error handling