Express API Pets Back-End

About

In this module, students will practice the fundamental operations of creating, reading, updating, and deleting data (CRUD) using the Mongoose ODM library with Express. They will explore techniques for managing cross-origin resource sharing (CORS), allowing their APIs to safely interact with resources from various domains.

Additionally, they will gain hands-on practice with Postman to test API functionality under different scenarios. By the end of this module, students will be equipped with the essential skills to develop and maintain a fully functional API in Express.

Content

Lesson Skills
Setup Setting up the development environment.
Concepts Fundamentals of RESTful APIs.
Defining the Database Define and export a mongoose model for use with an API.
Create Route Build a create route that returns JSON.
Index Route Build an index route that returns JSON.
Show Route Build a show route that returns JSON.
Delete Route Build a delete route that returns JSON.
Update Route Build an update route that returns JSON.
CORS Enable CORS for the API.

References

📖 Reference Materials

Internal

Prerequisites

Solution code

🏁 Solution code

Course landing pages

Resources

✏️ Instructor Guide

🎥 Video Hub

🏗️ Release Notes


Find a 👾 bug 👾 or have suggestions? Let us know!