Curso FASTAPI Foundation

  • DevOps | CI | CD | Kubernetes | Web3

Curso FASTAPI Foundation

16 horas
Visão Geral

O Curso FASTAPI Foundation, oferece uma introdução abrangente ao desenvolvimento de APIs rápidas e de alto desempenho utilizando o framework FastAPI, uma poderosa ferramenta baseada em Python. Durante o curso, os participantes aprenderão como criar APIs modernas, seguras e otimizadas com um foco especial em automação, validação de dados e integração com ferramentas de documentação automática. FastAPI se destaca pela sua simplicidade e velocidade, tornando este curso ideal para desenvolvedores que buscam eficiência no desenvolvimento de APIs RESTful.

Este Curso FASTAPI Foundation, oferece uma visão prática e detalhada sobre o desenvolvimento de APIs de alto desempenho com FastAPI, proporcionando aos alunos as habilidades necessárias para criar, otimizar e implementar APIs RESTful modernas e eficientes.

Objetivo

Após realizar este Curso FASTAPI Foundation, você será capaz de:

  1. Compreender os fundamentos do framework FastAPI.
  2. Criar APIs RESTful de alto desempenho com FastAPI.
  3. Utilizar o sistema de validação de dados do FastAPI com Pydantic.
  4. Implementar autenticação e autorização em APIs FastAPI.
  5. Gerar documentação automática de APIs utilizando OpenAPI e Swagger com FastAPI.
  6. Otimizar APIs para desempenho e escalabilidade com FastAPI.
Publico Alvo
  • Desenvolvedores Python interessados em construir APIs RESTful de alta performance.
  • Engenheiros de software que desejam aprender um framework moderno e eficiente para APIs.
  • Arquitetos de software que buscam otimizar o desenvolvimento de sistemas web com Python.
  • Equipes de DevOps que pretendem automatizar o desenvolvimento de APIs com validação e documentação automática.
Pre-Requisitos
  • Conhecimentos intermediários de Python.
  • Experiência com desenvolvimento web básico.
  • Familiaridade com JSON e APIs RESTful.
Materiais
Inglês + Exercícios + Lab Pratico
Conteúdo Programatico

Introduction to FastAPI

  1. Overview of FastAPI and its advantages
  2. Comparison with other frameworks (Django, Flask, etc.)
  3. Installation and environment setup

Creating Your First FastAPI Application

  1. Setting up a basic FastAPI project
  2. Handling HTTP requests (GET, POST, PUT, DELETE)
  3. Path parameters and query parameters
  4. Returning responses in JSON format

Data Validation with Pydantic

  1. Introduction to Pydantic for data validation
  2. Defining request bodies using Pydantic models
  3. Validating and serializing data with Pydantic
  4. Handling errors and custom validation logic

API Documentation with FastAPI

  1. Automatic generation of OpenAPI documentation
  2. Using Swagger UI and Redoc for API documentation
  3. Customizing the API documentation output
  4. Exploring the interactive API documentation features

Dependency Injection in FastAPI

  1. Understanding FastAPI's dependency injection system
  2. Managing dependencies and reusable components
  3. Implementing database connections and other services as dependencies
  4. Dependency overrides for testing

Building RESTful APIs with FastAPI

  1. RESTful design principles with FastAPI
  2. Creating CRUD operations for a resource
  3. Working with path and query parameters
  4. Handling file uploads and downloads

Authentication and Authorization

  1. Implementing basic authentication and OAuth2 in FastAPI
  2. Handling JWT (JSON Web Tokens) for secure API access
  3. Protecting routes and enforcing role-based access control
  4. Working with third-party authentication providers (e.g., Google, GitHub)

Asynchronous Programming in FastAPI

  1. Introduction to asynchronous programming in Python
  2. Writing async endpoints with FastAPI
  3. Integrating async database operations (e.g., with SQLAlchemy or Tortoise ORM)
  4. Performance benefits of asynchronous APIs

Testing FastAPI Applications

  1. Setting up unit and integration tests for FastAPI
  2. Using pytest for testing FastAPI routes and logic
  3. Mocking dependencies and database interactions in tests
  4. Ensuring code quality with automated testing

Deploying FastAPI Applications

  1. Deployment strategies for FastAPI
  2. Serving FastAPI with Uvicorn and Gunicorn
  3. Dockerizing FastAPI applications
  4. Best practices for deploying FastAPI in production environments

Security Best Practices with FastAPI

  1. Securing APIs with HTTPS and SSL/TLS
  2. Protecting against common web vulnerabilities (e.g., SQL injection, XSS)
  3. Rate limiting and throttling API requests
  4. Implementing CORS (Cross-Origin Resource Sharing)

Integrating FastAPI with Databases

  1. Connecting FastAPI to SQL and NoSQL databases
  2. Using SQLAlchemy and Tortoise ORM with FastAPI
  3. Managing database migrations with Alembic
  4. Implementing data models and querying databases asynchronously

Advanced FastAPI Features

  1. WebSockets in FastAPI for real-time applications
  2. Background tasks and scheduled jobs
  3. Streaming responses and file handling
  4. Custom middleware and request handling

Building a Complete FastAPI Project

  1. Designing and developing a complete REST API
  2. Integrating third-party services and APIs
  3. Securing and optimizing the API for production use
  4. Final project: API implementation, testing, and deployment
TENHO INTERESSE

Cursos Relacionados

Curso Ansible Red Hat Basics Automation Technical Foundation

16 horas

Curso Terraform Deploying to Oracle Cloud Infrastructure

24 Horas

Curso Ansible Linux Automation with Ansible

24 horas

Ansible Overview of Ansible architecture

16h

Advanced Automation: Ansible Best Practices

32h