This device is not compatible.
You will learn to:
Create endpoints using Flask-RESTX to perform CRUD operations on records in the database.
Handle the responses and exceptions of database queries.
Skills
API Development
Backend Development
REST API
Prerequisites
Familiarity with Flask
Familiarity with the Flask-RESTX extension
Good understanding of SQLAlchemy
Technologies
SQLite
SQLAlchemy
Flask-RESTX
Project Description
In this unguided project, we’ll create endpoints to get and display information about different movies using Flask. We’ll use the Flask-RESTX extension for REST API development. Flask-RESTX is a Flask extension that adds support for API development. This extension eases the process of API creation by providing different decorators. By default, Flask-RESTX automatically generates the Swagger UI documentation for REST APIs. We’ll use SQLite and SQLAlchemy to handle database-related operations. Our API will consist of the following endpoints:
Get all movies.
Get a movie by its ID.
Get movies between a particular range of release years.
Get movies by their titles.
Post a new movie.
Update an existing movie.
Delete a movie.
Project Tasks
1
Introduction
Task 0: Get Started
Task 1: Set Up the Movies Model for Database
Task 2: Register a Flask-RESTX Model
2
Create Endpoints for the API
Task 3: Add a New Movie
Task 4: Get a Movie by ID
Task 5: Update a Movie
Task 6: Delete a Movie
Task 7: Retrieve All Movies
Task 8: Get Movies Released Within a Range of Years
Task 9: Get Movies by Title
Congratulations!
Relevant Courses
Use the following content to review prerequisites or explore specific concepts in detail.