We may earn an affiliate commission when you visit our partners.
Course image
Udemy logo

The Complete FastAPI Course With OAuth & JWT Authentication

Ashutosh Pawar

The Complete FastAPI Course: Build API with Python & FastAPI

Here Is What You Get By Enrolling In This Course:

Word-By-Word Explanation: In the entire course, I explain each line of code, without skipping a single line of code.

Read more

The Complete FastAPI Course: Build API with Python & FastAPI

Here Is What You Get By Enrolling In This Course:

Word-By-Word Explanation: In the entire course, I explain each line of code, without skipping a single line of code.

Awesome Quality Content: Over 5+ hours of HD(1080p) Videos.

Well Structured & Easy To Learn: Course has been specially designed to make it easy for the students to learn how to build APIs using FastAPI & Python.

24 X 7 Support: I  will always be there to guide you in your journey to become a FastAPI expert.

Here Is A Brief Introduction About This Complete Course:

FastAPI is one of the most modern, fast and efficient framework for building APIs.

If you want to learn how to built high performance APIs then FastAPI should be your go to framework.

In this course we will learn FastAPI right from scratch and by then end of the course you will be able to build a complete API which supports authentication, JWT tokens, relational models and protected API routes.

This course is designed in a way that even a complete beginner can get started building APIs without even knowing what an API is.

We start off with the basics such as understanding what an API is and what purpose it serves.

We will then learn the different approaches/ frameworks to build APIs with Python and how they compare with FastAPI.

The entire course is divided into 8 sections as follows:

Section 1: Introduction & Installation.

This section covers what an API is and the purpose and API serves. We also jump into learning about the FastAPI framework and how it helps create high performance APIs in no time. We will also learn how to setup and install FastAPI framework in a virtual environment and will create our first and the most basic API.

Section 2: Path & Query Parameters

APIs accept queries in form of URL requests. In this section we learn what are path and query parameters and how they can be used for form a request body to make API calls. We learn how to program APIs in a way such that they respond as per the data sent to it from path and query parameters. We also learn how to use both the parameters simultaneously in a single API route.

Section 3: Models & Request Body.

While working with APIs we need a way to model data, be it request or response data. With FastAPI, we can use Pydantic models which allow us to create data models that can be used to define the structure of data. We learn how to create Pydantic models and use them inside API routes

Section 4: Connecting to the database.

In this section we learn how to establish a connection with the database. We will be using the SQLAlchemy library as on object relational mapper which maps tables into classes and table rows into objects, that way database data can be manipulated without having to write any SQL queries. We learn how to create SQLAlchemy models and later convert them into database tables at the backend. We use a tool called table plus to visualize database data.

Section 5: Performing CRUD operations.

Once the database connection is established, we then learn how to perform operations like create, read, update and delete on the database data. We create separate routes for each of these operations and also learn how to raise exceptions with HTTP error codes whenever the API receives an invalid request.

Section 6: Creating Multiple Models & Establishing Relationship.

After performing the database operations on a single model, we then learn how to create multiple models and establish a connection between them using a foreign key. We also learn how to securely store hashed passwords in a database using a library called Bcrypt. Along with it we also learn how to add metadata to our API and modify contents on the documentation page.

Section 7: Using API Router.

Writing modular code is always preferable when it comes to any software and same is the case with APIs as well. Using API routes, we can split different routes into multiple files so that the code becomes modular and maintainable. We learn how to use routers and split the main API code into separate modules using an API router.

Section 8: Authentication.

This section covers how to validate user credentials via an API route. Once the credentials are found to be valid, we then generate a JWT token for every logged in user. JWT tokens help us prevent access to API routes from unauthorized users. We learn how to create an assign JWT tokens to users so they can securely access API routes.

So let's begin the journey of becoming an expert API developer.

In addition to the Udemy 30-day money back guarantee, you  have my personal guarantee that you will love what you learn in this  course. If you ever have any questions please feel free to message me  directly and I will do my best to get back to you as soon as  possible.

Make sure to enrol in the course before the price changes.

Take yourself one step closer towards becoming a professional API developer by clicking the "take this course button" now.

Join the journey.

Sincerely,

Ashutosh Pawar

Enroll now

What's inside

Learning objectives

  • Develop apis quickly using fastapi
  • Learn to model data for providing api response
  • Learn how to connect an api to a database
  • Use sqlalchemy to perform operations like create, read, update & delete data
  • Make api requests to manipulate database data
  • Send different status codes from an api
  • Handle exceptions for invalid api requests
  • Establish relationships between multiple data models
  • Create metadata for api
  • Use api router to modularise api routes
  • Protect api routes using authentication mechanisms
  • Generate jwt tokens to validate api requests
  • Show more
  • Show less

Syllabus

Introduction & Installation
Introduction
What is an API
Introduction To FastAPI
Read more
Installing FastAPI On Mac
Installing FastAPI On Windows
Creating A Simple API
Quiz 1: FastAPI Basics
Path & Query Parameters
Path Parameters
Path Parameters With Type
Automatic Documentation
Ordering Of Routes
Query Parameters
Passing Default Values To Query Parameters
Using Path & Query Parameters Simultaneously
Required Query Parameters
Request Body & Pydantic Models
Request Body
POST Method
Pydantic Models With Request Body
Using Model Inside A Function
Passing Path & Query Parameters To Request
Passing Multiple Models
Defining Fields For Metadata
Nesting Python DataTypes In A Model
Nesting Pydantic Models
Deeply Nested Models
Providing Example Data
Defining Example Data Using Fields
Time Data Types
Forms To Submit API Data
Connecting To Database
Introduction To Connecting To Database
Creating A Project
Creating A Connection
Creating A Model
Using Table Plus
Performing CRUD Operations
Adding Data To Database
Fetching Products
Deleting Products
Creating A Route To Update Products
Response Model
HTTP Status Codes
Raising Exceptions
Creating Multiple Models & Establishing Relationships
Creating Sellers
Hashing Passwords
Response Model For Seller
Establishing Relationships Between Models
Adding Metadata
Using API Router
Using Router For Sellers Routes
Defining Tags & Prefix
Authentication
Introduction To Authentication With JWT
Creating Login Route
Logging In The User
Significance Of JWT Token
Utility Function To Create JWT Token
Generating JWT Token
Get Current User
Protecting Routes
Conclusion
Course Conclusion

Good to know

Know what's good
, what to watch for
, and possible dealbreakers
Teaches a contemporary, modern, and widely adopted framework for building APIs using Python
Supports novice to intermediate learners for building APIs
Demonstrates how to build APIs from scratch
Emphasizes modular and extendable API development using API routers
Covers security features such as authentication and JWT token generation
Incorporates hands-on practice through interactive materials

Save this course

Save The Complete FastAPI Course With OAuth & JWT Authentication to your list so you can find it easily later:
Save

Activities

Coming soon We're preparing activities for The Complete FastAPI Course With OAuth & JWT Authentication. These are activities you can do either before, during, or after a course.

Career center

Learners who complete The Complete FastAPI Course With OAuth & JWT Authentication will develop knowledge and skills that may be useful to these careers:
Full-Stack Developer
As a Full-Stack Developer, you will merge your interests in front-end and back-end development. You should have a solid foundational understanding of both front-end and back-end frameworks, and you will be able to leverage that knowledge to design and implement web applications. The Complete FastAPI Course with OAuth & JWT Authentication can help you to gain proficiency in back-end development using Python and the FastAPI framework. FastAPI is a modern, fast, and efficient framework for building APIs, and it is quickly becoming the go-to choice for developers who want to build high-performance APIs. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with the skills you need to succeed as a Full-Stack Developer.
Software Engineer
Software Engineers are responsible for the design, development, and maintenance of software systems. They work with a variety of programming languages and technologies, and they must have a deep understanding of computer science fundamentals. The Complete FastAPI Course with OAuth & JWT Authentication can help you to build a strong foundation in Python and the FastAPI framework. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with the skills you need to succeed as a Software Engineer.
Data Scientist
Data Scientists use their knowledge of mathematics, statistics, and computer science to extract insights from data. They work with a variety of data sources, and they use a variety of tools and techniques to analyze data. The Complete FastAPI Course with OAuth & JWT Authentication can help you to build a strong foundation in Python and the FastAPI framework. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with the skills you need to succeed as a Data Scientist.
Machine Learning Engineer
Machine Learning Engineers design and develop machine learning models. They work with a variety of machine learning algorithms, and they must have a deep understanding of mathematics and statistics. The Complete FastAPI Course with OAuth & JWT Authentication can help you to build a strong foundation in Python and the FastAPI framework. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with the skills you need to succeed as a Machine Learning Engineer.
Web Developer
Web Developers design and develop websites and web applications. They work with a variety of programming languages and technologies, and they must have a strong understanding of web development principles. The Complete FastAPI Course with OAuth & JWT Authentication can help you to build a strong foundation in Python and the FastAPI framework. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with the skills you need to succeed as a Web Developer.
Cloud Architect
Cloud Architects design and implement cloud computing solutions. They work with a variety of cloud computing platforms, and they must have a deep understanding of cloud computing principles. The Complete FastAPI Course with OAuth & JWT Authentication can help you to build a strong foundation in Python and the FastAPI framework. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with the skills you need to succeed as a Cloud Architect.
Data Analyst
Data Analysts collect, analyze, and interpret data. They work with a variety of data sources, and they use a variety of tools and techniques to analyze data. The Complete FastAPI Course with OAuth & JWT Authentication can help you to build a strong foundation in Python and the FastAPI framework. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with the skills you need to succeed as a Data Analyst.
Business Analyst
Business Analysts analyze business processes and develop solutions to improve efficiency and productivity. They work with a variety of stakeholders, and they must have a strong understanding of business principles. The Complete FastAPI Course with OAuth & JWT Authentication can help you to build a strong foundation in Python and the FastAPI framework. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with the skills you need to succeed as a Business Analyst.
Project Manager
Project Managers plan and execute projects. They work with a variety of stakeholders, and they must have a strong understanding of project management principles. The Complete FastAPI Course with OAuth & JWT Authentication can help you to build a strong foundation in Python and the FastAPI framework. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with the skills you need to succeed as a Project Manager.
Product Manager
Product Managers develop and manage products. They work with a variety of stakeholders, and they must have a strong understanding of product management principles. The Complete FastAPI Course with OAuth & JWT Authentication can help you to build a strong foundation in Python and the FastAPI framework. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with the skills you need to succeed as a Product Manager.
Security Analyst
Security Analysts identify and mitigate security risks. They work with a variety of security tools and technologies, and they must have a deep understanding of security principles. The Complete FastAPI Course with OAuth & JWT Authentication may be useful for you if you are interested in a career as a Security Analyst. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with a foundation in security principles.
Network Administrator
Network Administrators manage and maintain computer networks. They work with a variety of network devices and technologies, and they must have a deep understanding of networking principles. The Complete FastAPI Course with OAuth & JWT Authentication may be useful for you if you are interested in a career as a Network Administrator. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with a foundation in networking principles.
Database Administrator
Database Administrators manage and maintain databases. They work with a variety of database technologies, and they must have a deep understanding of database principles. The Complete FastAPI Course with OAuth & JWT Authentication may be useful for you if you are interested in a career as a Database Administrator. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with a foundation in database principles.
Systems Administrator
Systems Administrators manage and maintain computer systems. They work with a variety of operating systems and technologies, and they must have a deep understanding of system administration principles. The Complete FastAPI Course with OAuth & JWT Authentication may be useful for you if you are interested in a career as a Systems Administrator. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with a foundation in system administration principles.
Technical Writer
Technical Writers create and maintain technical documentation. They work with a variety of technical products and technologies, and they must have a strong understanding of technical writing principles. The Complete FastAPI Course with OAuth & JWT Authentication may be useful for you if you are interested in a career as a Technical Writer. This course will teach you how to create secure and scalable APIs using FastAPI, and it will provide you with a foundation in technical writing principles.

Reading list

We've selected ten books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in The Complete FastAPI Course With OAuth & JWT Authentication.
Serves as a comprehensive reference for Python, covering all aspects of the language in a clear and concise manner. It is an invaluable resource for seasoned Python developers and beginners alike, providing quick access to information and guidance.
This comprehensive textbook provides a thorough understanding of database systems, covering topics such as data models, query processing, transaction management, and concurrency control. It serves as a valuable reference for those seeking a deeper understanding of the underlying principles behind database operations.
This comprehensive textbook provides an in-depth and systematic introduction to Python, covering both its core features and advanced concepts. It is an essential resource for those looking to build a strong foundation in Python, which is the language used in FastAPI.
This comprehensive book introduces web development with Flask, a popular Python framework. While it does not focus specifically on FastAPI, it provides a solid foundation for understanding web application development principles, which can be applied to FastAPI as well.
Provides a comprehensive guide to deep learning with Python. It covers topics such as neural networks, convolutional neural networks, recurrent neural networks, and deep learning models, making it a valuable resource for those who want to learn deep learning.
Provides a comprehensive guide to learning Python. It covers topics such as programming basics, data types, control flow, and functions, making it a valuable resource for those who want to learn Python from the ground up.
Provides a fun and engaging introduction to Python. It covers topics such as programming basics, data types, control flow, and functions, making it a valuable resource for those who want to learn Python in a lighthearted and accessible way.
Provides a comprehensive guide to data analysis with Python. It covers topics such as data cleaning, data manipulation, data visualization, and machine learning, making it a valuable resource for those who want to analyze and interpret data.
Provides a practical guide to data science from the ground up. It covers topics such as data cleaning, data manipulation, data visualization, and machine learning, making it a valuable resource for those who want to learn data science.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Here are nine courses similar to The Complete FastAPI Course With OAuth & JWT Authentication.
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2024 OpenCourser