Overview
Learn how to build a Flask REST API in this comprehensive 40-minute tutorial for beginners. Explore the fundamentals of REST and APIs, set up a virtual environment, and install necessary dependencies. Create a simple REST API, model data, and establish a database. Dive into Flask Restful, define arguments with RequestParser, and implement resource endpoints for users. Master techniques for marshalling and serializing JSON data, handling POST requests, and managing user-specific endpoints. Gain hands-on experience in updating and deleting data, equipping yourself with essential skills for backend web development using Python and Flask.
Syllabus
Intro
Welcome
Tutorial Prerequisites
What is REST? What is an API?
REST API Diagram
Virtual Environment set up
Install Dependencies
A Simple REST API
Modeling Data & Creating the Database
Flask Restful
Define args with RequestParser
/api/users Resource Endpoint
Marshalling / Serializable JSON Data
POST Data
/api/users/id Resource Endpoint
Update & Delete Data
Taught by
Dave Gray