Notes API Backend - This API will be consumed by Android App present at https://github.com/APushpendra08/notes-app-android-mvvm.git
NOTE : Deployed on https://notes-app-ipa.herokuapp.com/
- Clone the repository
- Install node modules -
npm install
- Create .env files in root of project and add these two parameters -
SECRET_KEY
andMONGO_URL
.MONGO_URL
will be connection string for MongoDB to store the dataSECRET_KEY
will be used for Authentication purpose. - Start the Node.js Application -
npm start
- Test the Server - Goto root of the host URL and see if the connection was established and a response was recieved -
Welcome to NotesAPI Backend
Method | URL | Description | Required Parameters |
---|---|---|---|
GET |
/users/signup |
Sign-up to NotesApp | username password email |
POST |
/users/signin |
Sign-in to NotesApp | username password email |
Method | URL | Description | Required Parameters |
---|---|---|---|
GET |
/note/ |
Get all Notes for the user | N/A |
POST |
/note/ |
Add a new note for the user | title description |
DELETE |
/note/:id |
Delete a note for given id | id as param |
PUT |
/note/:id |
Update the note for the given id | id as paramtitle description |