Skip to content

Latest commit

 

History

History
64 lines (60 loc) · 967 Bytes

README.md

File metadata and controls

64 lines (60 loc) · 967 Bytes

Nest Notes API

Nest Logo

This is a simple notes project for testing Nest (Node.js framework).

How to test the project:

  • Clone:
git clone https://github.com/hydra13/nest-notes-api.git
  • Install depedences:
cd nest-notes-api
npm i
  • Configure your MongoDB connection in:
src/config/keys.ts
  • Start service:
npm start

API

  1. Get all notes:
GET /notes 
  1. Get note by ID
GET /notes/:id 
  1. Create new note:
POST /notes 
{
  title: :title,
  text: :text
}
  1. Update note by ID:
PUT /notes/:id
{
  title: :title,
  text: :text
}
  1. Delete note by ID:
DELETE /notes/:id`;

Used: