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

Опубликовано: 03 Декабрь 2023
на канале: Keith Galli
3,314
102

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:
   • How to create & deploy an API in Pyth...  

Source code:
https://github.com/KeithGalli/python-...

Final source code:
https://github.com/KeithGalli/python-...

Gitlog command info can be found in this article:
  / mastering-the-terminal-to-improve-developm...  

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

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

Handling API keys with a Python decorator:
https://coderwall.com/p/4qickw/requir...

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 |   / keithgalli  
Twitter |   / keithgalli  
TikTok |   / keithgalli  

-------------------------
If you are curious to learn how I make my tutorials, check out this video:    • How to Make a High Quality Tutorial V...  

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

Join the Python Army to get access to perks!
YouTube -    / @keithgalli  
Patreon -   / 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.