Flask REST API
Build a JSON API with Flask, blueprints, SQLAlchemy and request validation.
What you'll learn
- Structure a Flask app with blueprints and an app factory
- Model data with SQLAlchemy
- Validate and serialize data with Marshmallow
- Return proper status codes and error bodies
- Test endpoints with pytest
About this course
You build a task API in Flask. You organize routes with blueprints, store data with SQLAlchemy and validate input with Marshmallow. The project ends with a documented API you can call from any front end.
Course curriculum
4 modules and 12 lessons over 4 weeks. Plan for about 12 learning hours.
01Flask structureWeek 1 · 3 lessons
- App factory
- Blueprints
- Configuration
02DatabaseWeek 2 · 3 lessons
- SQLAlchemy models
- Migrations with Alembic
- Queries
03ValidationWeek 3 · 3 lessons
- Marshmallow schemas
- Error handlers
- Status codes
04Tasks API projectWeek 4 · 3 lessons
- Endpoints
- pytest tests
- README and API docs
Project
Tasks API. A Flask REST API for tasks and projects with validation, tests and documentation.
Who this course is for
Python learners who want to build APIs for web or mobile front ends.
Prerequisites
You know Python basics and have seen a Flask route before.
What's included
- 180-day course access
- Project brief
- Starter repository
- Coding labs
- Reference solutions
- One written project review
- A digital completion certificate
Learning format
Project-based online course, part of our guided project courses. One written project review.
Access and delivery
- Course access is delivered within 15 minutes after payment.
- Written project review is returned within 2 business days of submission.
- Completion materials are issued within 2 business days after the project is approved.
Certificate
You receive a digital completion certificate. Completion materials are issued within 2 business days after the project is approved.
Frequently asked questions
When does access start?
Course access is delivered within 15 minutes after payment.
Is payment taken on this website?
No. After you submit your enrollment request, we reply by email with payment details and enrollment confirmation.
Does this course guarantee a job or income?
No. It is an education and training service and does not include employment, income or placement guarantees.
Can I cancel?
Our Refund and Cancellation Policy lists the terms for project-based programs.