I am uploading my REST API project to Git. This API performs fundamental CRUD operations, including creating, reading, updating, and deleting data. In developing this project, I utilized various npm packages, such as UUID and Method-Override, along with the Express framework to facilitate the functionality.
This is my REST API project, designed to perform basic CRUD (Create, Read, Update, Delete) operations. It serves as a foundational application to understand RESTful principles and API development.
- Create: Add new data entries.
- Read: Retrieve existing data.
- Update: Modify existing data entries.
- Delete: Remove data entries.
- Node.js: JavaScript runtime for server-side development.
- Express: Web framework for building APIs.
- UUID: Library for generating unique identifiers.
- Method-Override: Middleware to support HTTP verbs such as PUT and DELETE.
-
Clone the repository:
git clone https://github.com/yourusername/your-repo-name.git
-
Navigate to the project directory: bash Copy code cd your-repo-name
-
Install the dependencies: bash Copy code npm install
-
Usage To start the server, run:
bash Copy code npm start The API will be available at http://localhost:3000 (or your specified port).
** API Endpoints POST /api/resource: Create a new resource. GET /api/resource: Retrieve all resources. GET /api/resource/ : Retrieve a specific resource by ID. PUT /api/resource/ : Update a specific resource by ID. DELETE /api/resource/ : Delete a specific resource by ID.
-------Contributing--------- Feel free to fork the repository and submit pull requests. Contributions are welcome!