Autoplay
Autocomplete
Previous Lecture
Complete and Continue
Create APIs With Flask
Intro
Course Intro (1:16)
Which Version of Python (1:10)
How APIs Work
Overview Of How APIs Work (0:53)
URLs (2:50)
URL Endpoints With IDs (1:00)
Methods (2:57)
Status Codes (2:48)
Responses (2:52)
What Makes A Rest API (1:50)
Postman
Using Postman to Test Your API (0:45)
Marshmallow
Marshmallow Overview (1:24)
Schemas (5:11)
Loading and Dumping (3:48)
Validation (2:14)
Multiple Items (5:36)
Partial Loads and Excludes (4:01)
Flask-SQLAlchemy Features
Generative Query Overview (2:58)
Generative Query Example (2:37)
Pagination (3:48)
JSON Web Tokens
Overview of JSON Web Tokens (2:37)
Book API
Installing Flask (1:14)
Setting Up The Project (1:29)
Configuration (2:47)
Create DB Command (1:47)
Create the Models (5:05)
Create the Tables (1:46)
The API Blueprint and Routes (2:54)
Adding More Routes (4:44)
Create the Marshmallow Schemas (7:27)
The POST Method to Create (Part 1) (6:09)
The POST Method to Create (Part 2) (4:58)
Handling Errors (3:51)
The GET Method for One Object (2:50)
The DELETE Method (1:53)
The PUT Method (4:47)
Updating the Other Resources (1:20)
Create the API Result Function (5:09)
The API Field Schema (6:00)
Pagination (4:09)
Filter By Fields (4:35)
Ordering (3:28)
Excluding Fields (1:50)
Pagination Links (8:09)
Combining All The Parameters (2:05)
Authentication With JSON Web Tokens (8:17)
Wrap Up (0:27)
Simple JavaScript Frontend for the API
Overview of the App (1:09)
The Starting HTML (1:57)
Fetching From our API (2:26)
Setting Up The LoadBooks Function (3:12)
Using Flask-CORS (2:08)
Displaying the List of Books (5:48)
Pagination (10:06)
Deleting Books (5:10)
The Add Book Form (5:19)
Submitting the Add Book Form (7:10)
Sending the Book Data (3:41)
The Login Form (1:51)
Submitting the Credentials to the API (5:13)
Placing the Access Token in the Local Storage (2:21)
Using the Access Token in Fetch (4:12)
Course Outro
Course Outro (0:31)
Using the Access Token in Fetch
Lecture content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock