Python Project: Implement a REST API with Flask & Flasgger Libraries! @KeithGalli
Python Project: Implement a REST API with Flask & Flasgger Libraries!  @KeithGalli
Uploaded December 2023 | Updated November 2026, 3 hours ago
We continue where we left on in the last video and implement two REST endpoints for a book review API. We implement a Get request to retrieve all our reviews and implement a Post request to add a new review to our Airtable database. We use the Flasgger library to create interactive documentation for our endpoints. We use ChatGPT to help us write our endpoints Python code. We use Render.com to deploy our API to a publicly accessible URL

Link to first video:
youtu.be/moi8WPO3Xhs

Source code:
github.com/KeithGalli/python-api-example/tree/part1-code

Final source code:
github.com/KeithGalli/python-api-example/tree/book_review

Gitlog command info can be found in this article:
medium.com/posh-engineering/mastering-the-terminal-to-improve-development-speed-fd234149efb6

How to set environment variables (all operating systems:
twilio.com/blog/how-to-set-environment-variables-html

More information on the Flasgger library:
github.com/flasgger/flasgger

Handling API keys with a Python decorator:
coderwall.com/p/4qickw/require-an-api-key-for-a-route-in-flask-using-only-a-decorator

If you enjoyed this video, be sure to give it a like and subscribe :). If you have any questions, let me know in the comments!

Video timeline!
0:00 - Overview
0:41 - Getting started on the Book Review API
2:20 - Set up Airtable as our database & connect to it with Python
10:44 - Implement code to add reviews and view all reviews
31:40 - Adding a POST request to our API
36:40 - Trying out our new endpoints (using documentation & requests library of Python)
41:32 - Commit code to Github & deploy live to Render.com

-------------------------
Follow me on social media!
Instagram | instagram.com/keithgalli
Twitter | twitter.com/keithgalli
TikTok | tiktok.com/@keithgalli

-------------------------
If you are curious to learn how I make my tutorials, check out this video: youtu.be/LEO4igyXbLs

Practice your Python Pandas data science skills with problems on StrataScratch!
stratascratch.com/?via=keith

Join the Python Army to get access to perks!
YouTube - youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/join
Patreon - patreon.com/keithgalli

*I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.
Python Project: Implement a REST API with Flask & Flasgger Libraries!The Most Epic Data Science Tutorial Promo Video!How I became an unemployed MIT grad still living with my parents.How Good are you at Data Science?? (Datacamp Platform Exploration)How to win at Othello almost every time!How to Program a Conversation with Alexa! (Python & AWS Lambda) -  Part 1Programming Rock, Paper, Scissors with no If Statements (Python)Everything you need to know about Classes in Python! (Object Oriented Programming Tutorial)Solving Real-World Data Science Problems with Python! (Predicting Healthcare Insurance Costs)Real-World Data Analysis & Visualization with Python! (Olympics Dataset Analysis)Complete Python Pandas Data Science Tutorial! (Reading CSV/Excel files, Sorting, Filtering, Groupby)Conditional Statements (if, elif, else) in Python - Beginner Python Tutorial #2
Keith Galli |

Python Project: Implement a REST API with Flask & Flasgger Libraries!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER