CSCI 421 - Lecture 5
Topics Covered
- Part 2:6 - Writing a REST API: Exposing the MongoDB database to the application
- REST Overview
- Setting up an API in Express
- GET methods: Reading data
- POST methods - Adding data
- PUT methods - Updating data
- DELETE method - Deleting data
- Part 2:7 - Consuming a REST API: Using an API from inside Express
- Calling an API from Express
- Getting Lists of Data from an API
- Getting a Single Document from an API
- Adding Data to the Database via the API
- Updating Data in the Database via the API
- Deleting Data in the Database via the API
- Data Validation to Protect Data Integrity
- Mid-Term Exam Study Guide is here.
Instructor's notes:
Notes supplied by the instructor which augment the lecture are here.
Mid-Term Study Guide:
Following is the study guide for the Mid-Term: here.