Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build APIs with Flask (Introductory) [2024]
Rating: 4.5 out of 5(38 ratings)
1,492 students

Build APIs with Flask (Introductory) [2024]

Build APIs with Flask the right way
Last updated 1/2024
English

What you'll learn

  • Build APIs with Flask following best practices
  • Create a Flask hello world application
  • How to choose a good API library
  • Using flaks-smorest
  • Implementing data validation models with Marshmallow
  • Test the API using the Swagger UI

Course content

8 sections16 lectures47m total length
  • Welcome to the course2:34
  • How to choose a good API library1:48

    Learn to choose the right API library for Flask by weighing data validation, REST API understanding, JSON schema semantics, and documentation generation to build robust REST services.

Requirements

  • Knowledge of Python and basic familiarity with REST APIs

Description

Flask is a hugely popular Python web development framework. Tons of websites are built with Flask, and tons of them contain APIs. I've had the privilege to work with many companies building APIs with Flask, I've seen many common errors and anti-patterns, and I've put together a bunch of best practices to avoid them. This course teaches you how to avoid common mistakes when building APIs with Flask and how to do it the right way.


This course is a quick introduction to building APIs with Flask following best practices and principles. If you know some Flask and are hungry to get started building APIs with Flask, this course is for you. And if you don't know Flask, don't worry, we'll begin by implementing a "hello world" application with Flask so that you understand the basics. You'll see that it really is very easy to get started with Flask.


Flask is one of Python's top web development frameworks. We love Flask because it's lightweight, non-opinionated, very intuitive and easy to use. Flask gives us a lot of flexibility on how to structure our applications and how to implement each layer. However, with great flexibility also comes great responsibility, and this is where things often go astray.


That's especially true for APIs. I've seen it myself. You can get going building APIs directly with Flask, returning JSON, parsing and validating request payloads yourself. And before you realise it, you've built your own API framework, just not a very good one.


APIs are deceptively simple, and so it's very tempting to build them without the right tools. Don't do that. In this course, you'll learn to build Flask APIs using Flask-smorest, a great Flask plugin for building REST APIs.

Who this course is for:

  • Beginner Python developers who want to start building APIs with Flask following best practices