8565  Reviews star_rate star_rate star_rate star_rate star_half

Build REST APIs with Python and FastAPI

The Python training course is for students who have Python experience and desire to build REST APIs with Python. The course starts by covering the essential concepts of REST APIs, the HTTP protocol,...

Read More
Duration 3 days
Course Code REST-PYTH-FASTAPI
Available Formats Classroom

Overview

The Python training course is for students who have Python experience and desire to build REST APIs with Python. The course starts by covering the essential concepts of REST APIs, the HTTP protocol, and standard data formats such as JSON. Since more REST APIs utilize databases, the class will cover how to use PostgreSQL, SQL Server, or MongoDB (client choice) with Python as part of a REST API. To implement REST APIs, the FastAPI REST API framework is used (this can be swapped with Flask if Flask is preferred). Finally, topics such as security and cloud deployment are covered.

Skills Gained

  • Understand the benefits and principles of a REST API
  • Review the HTTP protocol and learn how it applies to REST APIs
  • Explore how to connect to a Postgresql or SQL Server database with Python
  • Review Python Web Framework options
  • Learn about tools commonly used when developing REST APIs
  • Build a REST API using the Python FastAPI REST API framework

Prerequisites

All students should be able to comfortably write Python scripts using basic data types, program structures, and the standard Python library.

Course Details

Training Materials

All students receive comprehensive courseware covering all topics in the course. Courseware is distributed via GitHub in the form of documentation and extensive code samples. Students practice the topics covered through challenging hands-on lab exercises.

Software Requirements

Students will need a free, personal GitHub account to access the courseware. Students will need permission to install Python and Visual Studio Code on their computers. Also, students will need permission to install Python Packages and Visual Studio Extensions. If students are unable to configure a local environment, a cloud-based environment can be provided.

Development Environment (Very Quick Overview)

  • Configure VS Code for Python development
  • Code Reformatting with Black
  • Debugging Python Scripts with VS Code

Quick Review of HTTP and URLs

  • What is HTTP?
  • What are HTTP Verbs?
  • What are the parts of a URL?
  • Path Parameters
  • Query String Parameters
  • Common HTTP Headers
  • Common HTTP Status Codes

Quick Review of Databases

  • What is a Database?
  • Connecting to a Database
  • Query data from a Database
  • Modify data in a Database

Overview of Python Web Frameworks

  • Django
  • Flask
  • FastAPI

Representational State Transfer

  • What is REST?
  • HTTP Verbs and their use in REST
  • OpenAPI
  • JSON
  • Swagger

Building a REST API with FastAPI

  • Create an Application
  • Define a Hello World Route
  • Configure a Path Parameter
  • Configure a Query String Parameter
  • Reading Request Body
  • Writing a Response Body
  • Handling Cookies
  • Handle Errors
  • Return Specific Status Codes
  • Asynchronous Routes
  • Serving Static Files

Middleware

Security

  • Secure a REST API with JWT
  • Configure CORS

Cloud Deployment

  • Microservice Architecture
  • REST API Containerization
  • Running Server-Less in Azure

Schedule

FAQ

Does the course schedule include a Lunchbreak?

Classes typically include a 1-hour lunch break around midday. However, the exact break times and duration can vary depending on the specific class. Your instructor will provide detailed information at the start of the course.

What languages are used to deliver training?

Most courses are conducted in English, unless otherwise specified. Some courses will have the word "FRENCH" marked in red beside the scheduled date(s) indicating the language of instruction.

What does GTR stand for?

GTR stands for Guaranteed to Run; if you see a course with this status, it means this event is confirmed to run. View our GTR page to see our full list of Guaranteed to Run courses.

Does Ascendient Learning deliver group training?

Yes, we provide training for groups, individuals and private on sites. View our group training page for more information.

What does vendor-authorized training mean?

As a vendor-authorized training partner, we offer a curriculum that our partners have vetted. We use the same course materials and facilitate the same labs as our vendor-delivered training. These courses are considered the gold standard and, as such, are priced accordingly.

Is the training too basic, or will you go deep into technology?

It depends on your requirements, your role in your company, and your depth of knowledge. The good news about many of our learning paths, you can start from the fundamentals to highly specialized training.

How up-to-date are your courses and support materials?

We continuously work with our vendors to evaluate and refresh course material to reflect the latest training courses and best practices.

Are your instructors seasoned trainers who have deep knowledge of the training topic?

Ascendient Learning instructors have an average of 27 years of practical IT experience and have also served as consultants for an average of 15 years. To stay current, instructors spend at least 25 percent of their time learning new, emerging technologies and courses.

Do you provide hands-on training and exercises in an actual lab environment?

Lab access is dependent on the vendor and the type of training you sign up for. However, many of our top vendors will provide lab access to students to test and practice. The course description will specify lab access.

Will you customize the training for our company’s specific needs and goals?

We will work with you to identify training needs and areas of growth.  We offer a variety of training methods, such as private group training, on-site of your choice, and virtually. We provide courses and certifications that are aligned with your business goals.

How do I get started with certification?

Getting started on a certification pathway depends on your goals and the vendor you choose to get certified in. Many vendors offer entry-level IT certification to advanced IT certification that can boost your career. To get access to certification vouchers and discounts, please contact info@ascendientlearning.com.

Will I get access to content after I complete a course?

You will get access to the PDF of course books and guides, but access to the recording and slides will depend on the vendor and type of training you receive.

How do I request a W9 for Ascendient Learning?

View our filing status and how to request a W9.

Reviews

The training was great . But i expected some of the Networking concepts would be covered in this certification .

Very interactive and in-depth course that really got me ready for the industry

Although there seemed to be too many links for the course, everything worked smoothly.

They are very good and made sure we had all the appropriate materials for class.

Easy to use and exactly what I was looking for. Value for money was exceptional.