Curso de FastAPI - Rest API com Python (Backend Completo) - Aula 02: Requisições e Roteamento da API
Want to learn more about our Complete Python Course? Click the link below to secure your spot in the next class: https://lp.hashtagtreinamentos.com/es... CLICK AND ACCESS THE FREE AUTOMATION MINICOURSE AT PYTHON: https://dlp.hashtagtreinamentos.com/p... ----------------------------------------------------------------------- If you prefer the video in text format: https://www.hashtagtreinamentos.com/c... ----------------------------------------------------------------------- 📁 Files Used in Video: https://dlp.hashtagtreinamentos.com/p... 💻 Recommended video: FastAPI Course Playlist - Rest API with Python (Complete Backend) • Curso de FastAPI - Rest API com Python (Ba... ----------------------------------------------------------------------- FOR HIRE HASHTAG FOR YOUR COMPANY: https://www.hashtagtreinamentos.com/t... ----------------------------------------------------------------------- We've reached the second lesson of the FastAPI Course - REST API with Python (Complete Backend)! In this lesson, you'll master everything about HTTP requests and creating routes for modern APIs with Python. We'll explore how to create and organize routes using APIRouter, gain a practical understanding of the main request types (GET, POST, PUT, PATCH, and DELETE), and why these operations are essential for a professional RESTful API. You'll also learn how to structure your project into multiple files, separating responsibilities by modules, such as authentication and requests, ensuring scalability and ease of maintenance for your backend with FastAPI. Furthermore, I'll show you how to import routes into the main file (main.py), configure prefixes to avoid conflicts between endpoints, and use the automatic documentation generated by FastAPI to test and validate your routes directly in the browser. And finally, we'll see how to properly document each route with docstrings, making your API more understandable and accessible for any developer. 📌 Enjoying this comprehensive content on APIs with Python? Then subscribe to the channel, activate the bell, and leave a like to follow all the lessons in our FastAPI course! ----------------------------------------------------------------------- Hashtag Programming ► Subscribe to our channel: http://bit.ly/3c0LJQi ► Turn on notifications (click the bell)! ► Like our video! ----------------------------------------------------------------------- Social Media ► Blog: https://bit.ly/2MRUZs0 ► YouTube: http://bit.ly/3c0LJQi ► Instagram: https://bit.ly/3o6dw42 ► Facebook: http://bit.ly/3qGtaF2 Here in the videos on the Hashtag Programming channel, we teach several Python tips so you can develop in this programming language and create your own projects and automations! ----------------------------------------------------------------------- Class Content 00:00 Introduction 01:05 What are routes in REST APIs and how to create them with FastAPI 03:03 Understanding HTTP requests: GET, POST, PUT, and DELETE 06:31 Creating route files for authentication and orders 09:28 How to import routes into the main file (main.py) 11:24 Creating the authentication router in FastAPI 13:37 How to organize API documentation with route tags 15:07 Creating the order router in FastAPI 15:42 Including custom routes in the FastAPI app with APIRouter 17:47 Testing the local server with Uvicorn 18:28 Creating the application's first routes 18:53 How to create a default order route in the API 21:35 How to define asynchronous functions (async) def) in FastAPI routes 22:26 What is JSON and how FastAPI uses this format 24:12 Viewing routes in the automatic FastAPI documentation 25:30 How to test routes with the FastAPI documentation 28:20 Creating an authentication route in FastAPI 29:35 Testing the authentication route 30:25 Documenting routes using docstrings 32:40 Conclusion #python #hashtagprogramming

FastAPI Course - Rest API with Python - Class 09: Add Item to Order and Relationship to Models

Nuxt vs. React | Which JavaScript framework is better?

FastAPI Course - Rest API with Python - Class 03: Database, Models and Migrations

Aprenda de vez o que é uma API com esse exemplo simples em Python

05 - Etiquetas Codigo de Barras e QRCode

FastAPI Course - Rest API with Python - Class 04: Creating a user account, Schemas and Encryption

Build a Simple API from Scratch 💻 FastAPI Tutorial for Beginner

Tutorial Integração API PIX da Efí Gerencianet PHP - Pt 5 (Implementação e teste do webhook)

Jensen Huang: The Mindset That Built NVIDIA

FastAPI Course - Rest API with Python - Class 06: Authentication, OAuth2 and JWT Tokens

REST API Crash Course - Introduction + Full Python API Tutorial

4 boas práticas em Python (para usar SEMPRE)

Decepcionado com o que vi no Relatório Final #Live

FREE PYTHON COURSE - LESSON 8 - DICTIONARIES

FastAPI Course - Rest API with Python (Complete Backend) - Class 05: Creating Orders and Logging In

Dependency Injection Explained Like You’re 5 (with FastAPI Examples)

Python Django REST API In 30 Minutes - Django Tutorial

How to Make API Requests with Python (in Practice!)

