Flask API Pets Back End

About

In this module, students will practice the fundamental operations of creating, reading, updating, and deleting data (CRUD) using the PostgreSQL and Flask. 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 Flask.

Content

Lesson Skills
Setup Setting up the development environment
Concepts Fundamentals of RESTful APIs
Defining the Database Connect and interact with a SQL database in Flask
Create Route Create a create route that returns JSON
Index Route Create an index route that returns JSON
Show Route Create a show route that returns JSON
Delete Route Create a delete route that returns JSON
Update Route Create an update route that returns JSON
CORS Enable CORS for the API

References

📖 Reference Materials