In this lesson we’ll create an endpoint to delete an individual study group in the MongoDB database. The code for this lesson will be written and discussed in class. Tasks Create DELETE /studygroup/:id endpoint Test on localhost using Postman Homework Add DELETE /studygroup/:id endpoint to your router. Add a functioning delete button next to each […]
In this lesson we’ll create an endpoint to modify an individual study group in the MongoDB database. The code for this lesson will be written and discussed in class. Tasks Create PATCH /studygroup/:id endpoint Test on localhost using Postman Homework Add the PATCH /studygroup/:id endpoint to your API server. Add edit buttons to all of […]
In this lesson we’ll create an endpoint to get a set of studygroup entries from the MongoDB database. The code for this lesson will be written and discussed in class. Tasks Create GET /studygroups endpoint Test with Postman on Localhost Homework Add the GET /studygroups endpoint to your router. Implement a page or modal in […]
In this lesson we’ll create a model for study groups, create a router that facilitates the creation of study groups, and test the endpoint. The code for this lesson will be written and discussed in class. Tasks Create a Days of Week Module Create a StudyGroup Model Create a StudyGroup Router Register the StudyGroup Router […]
In this tutorial we’ll create two new endpoints (POST /user/login and PATCH /user/logout) that will allow users to log into the app and log out. The POST /user/login endpoint handler will expect an email address and password in the body of the request. We’ll use a static method on the User model to check that […]