Advanced REST APIs with Flask and Python [Video]
Video
Video
$109.99
Subscription
$15.99
$10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with Video + Subscription?
Download this video in MP4 format, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
What do you get with video?
What do you get with video?
What do you get with Audiobook?
What do you get with Exam Trainer?
Video
$109.99
Subscription
$15.99
$10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with Video + Subscription?
Download this video in MP4 format, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Access this title in our online reader
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with video?
Stream this video
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
What do you get with Exam Trainer?
Flashcards, Mock exams, Exam Tips, Practice Questions
Access these resources with our interactive certification platform
Mobile compatible-Practice whenever, wherever, however you want
-
Free ChapterIntroduction
- Introduction to this section
- Our project and endpoints
- Reviewing the beginner course code
- Simplifying our error handling
- Refactoring our resources
- Should we have unique names?
- Adding basic type hinting
- Adding custom JSON types
- Using the current class as a type hint
- Using Black for code formatting
- Improving errors with constants
- @classmethod across the board
- Testing our API with Postman
- Conclusion of this section
-
Serialization with Marshmallow
- Introduction to this section
- Serialization with Marshmallow
- Deserialization with Marshmallow
- Migrating from virtualenv to Pipenv
- Using vanilla Marshmallow with the API
- Introduction to Flask-Marshmallow
- Adding items to our REST API
- Adding stores to our REST API
- Deduplicating error handling
- Conclusion of this section
-
E-mail confirmations
- Introduction to this section
- Introduction to e-mail confirmation
- Adding an activated property
- Activating users manually
- Telling users, they are active
- Setting up Mailgun
- Sending e-mails with Mailgun (Part 1)
- Sending e-mails with Mailgun (Part 2)
- Creating our Mailgun library file
- Using .env files in Flask
- Adding more configuration to. Env
- Error handling in Mailgun
- Conclusion of this section
-
Advanced e-mail confirmation
- Introduction to this section
- Creating the Confirmation Model
- Changes in our User Model
- Creating our Confirmation Resource
- Updating our User Resource
- Adding the last confirmation to the user schema
- Fixing our app.py
- Cross-resource dependencies are (generally) bad
- What are localisation and internationalisation?
- Storing strings in config files
- Creating a simple translation library
- Updating our resources to use translations
- Adding a new language to our API
- What is Flask-Babel?
- Common pitfalls and advice
- Conclusion of this section
-
Postman documentation and tests
- Introduction to this section
- Collection and request descriptions
- Recap of Postman environments
- JavaScript tests in Postman
- Running entire collections in Postman
- Adding example requests and responses
- Previewing our Postman documentation
- Publishing our documentation page
- More options for publishing documentation
- Conclusion of this section
-
Image uploads
- Introduction to this section
- Installing Flask-Uploads
- Config files in Flask
- What are wsgi and Werkzeug?
- Creating our image helper library
- Creating our image schema
- Creating our image upload resource
- Trying out our image upload
- Retrieving and deleting images
- Another example: user avatars
- Adding the avatar resource
- Conclusion of this section
-
Database migrations
- Introduction to this section
- What's in our starter code?
- Connecting to our remote database
- Initialising Flask-Migrate and Alembic
- Creating our initial table structure
- Our first database migration
- Checking the Alembic script (important!)
- Adding a new column with migrations
- Problems that can happen while migrating
- A word of caution!
- Defining a SQLAlchemy naming convention
- When should you read documentation?
- Conclusion of this section
-
Third party login with OAuth
- Introduction to this lecture
- Introduction to OAuth 2.0
- What's in our starter code?
- Creating a GitHub OAuth App
- Flask-OAuthlib
- Setting up our GitHub client
- Our GithubLogin resource
- What is Flask's g?
- What is a tokengetter?
- Finishing our GithubAuthorize resource
- Adding some error handling
- Setting user passwords
- Using url_for with Flask-RESTful
- Conclusion of this section
-
Payments with Stripe
- Introduction to this section
- Setting up our Stripe account
- What's in our starter code?
- Where do users pay?
- After payment: receiving order data
- Creating our OrderModel
- Many-to-many relationships with SQLAlchemy
- Using the Association Object in our Resource
- Charging orders with Stripe
- Calculating the amount and description
- Testing our OrderResource
- Creating a way to view existing orders
- When things go wrong: error handling in Stripe
- Security considerations in payments
- Conclusion of this section
-
Bonus section
About this
video
This Advanced REST API course takes your REST API development to a whole new level by familiarizing you with more of the Flask ecosystem. We start with a simple REST API and teach you everything you need to know about it. We introduce new features and technologies by baking them into this application so you can see how a professional REST API is developed. Every new feature is added to a fully working application and tested. We also help you understand more about how to build features incrementally so you can get them to your users quickly and minimize risk.
Remember, this is our most advanced course yet! You should have adequate programming experience with Python or another programming language. Some knowledge of how the web works will also be helpful.
You should have prior knowledge of how to install Python packages and how to run your Python applications. If you've used virtualenv or Pipenv before, that's excellent! Knowledge of how to use PyCharm for debugging is also a plus, although we cover using the debugger in the course!
The codes and supporting files for this course are available at: https://github.com/PacktPublishing/Advanced-REST-APIs-with-Flask-and-Python
- Publication date:
- August 2019
- Publisher
- Packt
- Duration
- 5 hours 58 minutes
- ISBN
- 9781839215810
Latest Reviews
(1 reviews total)