|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/fastapi-course-python/
课程评论:没有评论
课程名称:完整的FastAPI课程:OAuth与JWT认证 课程概览: 该课程旨在帮助学生使用Python和FastAPI构建高性能的API。课程的亮点包括逐行解释代码、5小时以上的高清(1080p)视频内容、良好结构化且易于学习的模块设置,以及24小时不间断的支持。 课程介绍: FastAPI是一个现代、高效的API构建框架,适合希望学习创建高性能API的开发者。该课程从初学者的角度出发,无需任何API基础知识,逐步引导学生学习FastAPI的构建过程。课程涵盖了从API的基本概念到构建支持认证、JWT令牌、关系模型和保护API路由的完整API的所有内容。 课程结构共分为8个部分: 1. **介绍与安装**:学习API的定义及其作用,了解FastAPI框架和基本环境配置,创建第一个基本API。 2. **路径与查询参数**:学习如何使用URL请求中的路径和查询参数进行API调用。 3. **模型与请求体**:使用Pydantic模型定义数据结构,以便在API路由中使用。 4. **连接数据库**:使用SQLAlchemy库建立与数据库的连接,学习如何映射模型并操作数据库数据。 5. **执行CRUD操作**:创建、读取、更新和删除数据库记录,并处理无效请求的错误。 6. **创建多个模型与建立关系**:学习创建多个模型并通过外键建立联系,同时安全存储密码和添加API元数据。 7. **使用API路由**:通过API路由将不同的路由拆分为多个模块,实现代码的模块化和可维护性。 8. **认证**:验证用户凭证,生成JWT令牌,以保护API路由不被未授权用户访问。 该课程承诺提供优质的学习体验,并提供30天的退款保障。如果您对课程内容有任何疑问,可以随时联系讲师以获取支持。快来加入学习旅程,提升您的API开发技能!
The Complete FastAPI Course: Build API with Python & FastAPIHere 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 ParametersAPIs 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 routesSection 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