A RESTful API for managing courses, built using Node.js and MongoDB.
β
CRUD Operations: Create, Read, Update, and Delete courses.
β
MongoDB Integration: Stores course data efficiently.
β
Express.js Framework: Lightweight and fast API handling.
β
Error Handling: Ensures smooth API responses.
β
Authentication (Optional): Secure endpoints using JWT (if implemented).
- Node.js β Backend runtime.
- Express.js β API framework.
- MongoDB β Database for storing courses.
- Mongoose β ODM for MongoDB interaction.
- Postman β API testing.
Test endpoints using Postman or browser.
Method | Endpoint | Description |
---|---|---|
GET | /courses |
Get all courses |
GET | /courses/:id |
Get course by ID |
POST | /courses |
Add new course |
PATCH | /courses/:id |
Update course |
DELETE | /courses/:id |
Delete course |
Method | Endpoint | Description |
---|---|---|
GET | /users |
Get all users |
POST | //users/login |
Login user |
POST | /users/register |
Register a new user |