This repository contains a RESTful CRUD API built using Node.js and MongoDB, providing a powerful and flexible foundation for managing and manipulating data. The API enables Create, Read, Update, and Delete (CRUD) operations, allowing developers to interact with the data in a structured and efficient manner.
Here are the main endpoints supported by the API:
GET /api/resource
: Retrieve all resources.
GET /api/resource/:id
: Retrieve a specific resource by ID.
POST /api/resource
: Create a new resource.
PUT /api/resource/:id
: Update an existing resource by ID.
DELETE /api/resource/:id
: Delete a resource by ID.
After you download or clone this project, you need run this command to install Node packages
npm install
To start the application run the below command
npm run swap
Node.js: JavaScript runtime Express.js: Web application framework MongoDB: NoSQL database Mongoose: MongoDB object modeling tool for Node.js