Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please solve this Asap and guide me each steps Notes Keeper Backend: Building an api that stores notes entered by user. Authentication will get added
please solve this Asap and guide me each steps Notes Keeper Backend: Building an api that stores notes entered by user. Authentication will get added when we add the Angular part. Port: 3000 Database name: diary Collection name: notes Schema: title: String, required and unique body: String, required dateCreated: Date, default: new Date() important: Boolean. default(false) Access points: localhost:3000/apiotes/ Entering a note: post Retrieving all notes: get localhost:3000/apiotesote/sid Retrieving a note: get Updating a note: patch in the req.body you pass what you want to update Deleting a note delete localhost:2000/aiotes/recent Get 3 most recent notes set you can use sort and limit() IS2000/annotasimportant Gortante Optional extra credit): localhost:3000/apiotes/date Get entered date notes: post, pass date as a req.body.date You can start by inserting these notes: [ { "dateCreated": "2021-12-28T20:44:21.0902", "important": false, "title": "First note", "body": "First note entered after switching back to { "dateCreated" : "2019-01-14T20:44:21.000Z", important": true, "title": "First Note", "body": "This is the first note created", } "dateCreated":"2019-02 06T20:44:21.0902", "important": false, "title":"Second Notes "body": "This is the second note created", { dateCreated : 2019-05 15T20:44:21.00025 important": false) "titleThird Not body This the third note created datoret 2002 "title": "Second Note", "body": "This is the second note created", }, { "dateCreated": "2019-05-15T20:44:21.000Z", "important": false, "title"; "Third Note", "body": "This is the third note created", "dateCreated" : "2020-01-31T20:44:21.000Z", "important": true, "title": "Welcome Note", "body": "Welcome, in this website you can add notes and prioritize them ba on your needs. You can add a title, date created and how important the note is to you. You also edit and delete old notes, and add new notes", }, "dateCreated": "2021-12-29T20:44:21.6082" lamportant": false, "title": "Future Note "body. This is the first note entered through mongoose", 3 1 Notes Keeper Backend: Building an api that stores notes entered by user. Authentication will get added when we add the Angular part. Port: 3000 Database name: diary Collection name: notes Schema: title: String, required and unique body: String, required dateCreated: Date, default: new Date() important: Boolean. default(false) Access points: localhost:3000/apiotes/ Entering a note: post Retrieving all notes: get localhost:3000/apiotesote/sid Retrieving a note: get Updating a note: patch in the req.body you pass what you want to update Deleting a note delete localhost:2000/aiotes/recent Get 3 most recent notes set you can use sort and limit() IS2000/annotasimportant Gortante Optional extra credit): localhost:3000/apiotes/date Get entered date notes: post, pass date as a req.body.date You can start by inserting these notes: [ { "dateCreated": "2021-12-28T20:44:21.0902", "important": false, "title": "First note", "body": "First note entered after switching back to { "dateCreated" : "2019-01-14T20:44:21.000Z", important": true, "title": "First Note", "body": "This is the first note created", } "dateCreated":"2019-02 06T20:44:21.0902", "important": false, "title":"Second Notes "body": "This is the second note created", { dateCreated : 2019-05 15T20:44:21.00025 important": false) "titleThird Not body This the third note created datoret 2002 "title": "Second Note", "body": "This is the second note created", }, { "dateCreated": "2019-05-15T20:44:21.000Z", "important": false, "title"; "Third Note", "body": "This is the third note created", "dateCreated" : "2020-01-31T20:44:21.000Z", "important": true, "title": "Welcome Note", "body": "Welcome, in this website you can add notes and prioritize them ba on your needs. You can add a title, date created and how important the note is to you. You also edit and delete old notes, and add new notes", }, "dateCreated": "2021-12-29T20:44:21.6082" lamportant": false, "title": "Future Note "body. This is the first note entered through mongoose", 3 1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started