This is a basic API for a note-taking App.
This API is built using
- NodeJS
- Express
- MongoDB
basicApi
|- App
| |- routes
| | |- index.js
| | |- notesRoutes.js
|
|- config
| |- db.js
|
|- .gitignore
|- package.json
|- README.md
|- server.js
|- yarn.lock
Clone the repository
git clone https://github.com/edmondatto/basicApi.git
Install dependencies
yarn install
Run the development server and navigate to http://localhost:3000
yarn run dev
GET /notes/:id
: Get a note by passing the API its IDGET /notes/
: Get all notesPOST /notes/
: Create a new note by passing the API a title and body textPUT /notes/:id
: Update a particular note. Requires you to pass a note idDELETE /notes/:id
: Delete a particular note