Basic notes API
This repository provides a simple Notes API built with JavaScript. It allows users to create, read, update, and delete notes.
- Create new notes
- Retrieve all notes or a specific note
- Update existing notes
- Delete notes
- Node.js installed
-
Clone the repository:
git clone https://github.com/Keshav76315/notes-api.git cd notes-api -
Install dependencies:
npm install
Start the server:
npm start| Method | Endpoint | Description |
|---|---|---|
| GET | /notes |
Get all notes |
| GET | /notes/:id |
Get note by ID |
| POST | /notes |
Create a new note |
| PUT | /notes/:id |
Update note by ID |
| DELETE | /notes/:id |
Delete note by ID |