Building RESTful APIs with Flask
2h 33mIntermediate2019-08-01
Authors

Bruce Van Horn
Lead Software Developer at Visual Storage Intelligence
Course details
Regardless of platform, you will need to build APIs to serve data between different client applications and endpoints. Good APIs are a necessity for web and mobile projects, especially with the modern, mobile-first approach to development. This course delivers the fundamental knowledge required to enable highly connected interactions between applications via RESTful APIs. Follow along with Bruce Van Horn and learn how to quickly build, secure, and test an effective RESTful API using Python and Flask, the Python microframework. Find out how to use Flask with Python to approach database access, authentication, and other common tasks. Plus, learn about a few key plugins that make using Flask even easier.
Learning objectives
Creating a new Flask project
Testing with Postman
Returning JSON instead of text
Working with databases
Authenticating users
Securing APIs
Learning objectives
Creating a new Flask project
Testing with Postman
Returning JSON instead of text
Working with databases
Authenticating users
Securing APIs
Skills covered
FlaskAPIsBack-End Web DevelopmentFull-Stack Web DevelopmentPythonProjectWeb DevelopmentOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - RESTful APIs with Python 3 and Flask
- 02 - What you should know
- 03 - Using the exercise files
- 04 - Demo project overview
1. Getting Started
- 05 - Creating a new Flask project in PyCharm
- 06 - Making a super-simple API example
- 07 - Setting up a run configuration
- 08 - Testing with Postman
- 09 - Restarting your server
2. Perfecting the Returned Data
- 10 - Returning JSON instead of text
- 11 - HTTP status codes
- 12 - URL parameters
- 13 - URL variables and conversion filters
3. Working With Databases
- 14 - Adding an ORM (SQLAlchemy)
- 15 - Setting up SQLAlchemy
- 16 - Creating the ORM model classes
- 17 - Seeding the database with the Flask CLI
- 18 - Viewing the database in DB Browser for SQLite
- 19 - Retrieving a list of planets from the database
- 20 - Serializing SQLAlchemy results with Marshmallow
4. API Security
- 21 - JSON Web Tokens
- 22 - Registering new users
- 23 - Authenticating users and passing the token
- 24 - Setting up email
- 25 - Emailing a lost password
5. Create, Read, Update, and Delete
- 26 - Retrieving a single planet's details
- 27 - Adding planets with a POST method
- 28 - Securing the add planet endpoint
- 29 - Updating a planet using a PUT method
- 30 - Deleting a planet with DEL
Finishing Touches
- 31 - Exporting your project s requirements file
- 32 - Conclusion
Related courses
- Building RESTful APIs with Node.js and Express
- Building RESTful Web Services with DropWizard
- Building RESTful Web APIs with Django
- Building and Securing RESTful APIs in ASP.NET Core
- Programming Foundations: APIs and Web Services
- Building RESTful APIs in Laravel
- Creating Your First Spring Boot Microservice
- Building and Securing Restful APIs in .NET