Visão Geral
Este Curso Web APIs with Rust and ActixWeb, ensina os participantes como construir APIs REST com Rust e ActixWeb. Os participantes aprendem como criar rotas, manipuladores e extratores e como se conectar a um banco de dados e realizar operações CRUD.
Objetivo
Após relizar este Curso Web APIs with Rust and ActixWeb você será capaz de:
- Entenda os princípios de construção de uma API REST
- Crie APIs web com Rust e Actix
- Conecte uma API REST a um banco de dados (PostgreSQL ou SQL Server)
- Configurar rotas
- Explore extratores, manipuladores e middleware
- Publique e hospede uma API REST
Materiais
Inglês + Exercícios + Lab Pratico
Conteúdo Programatico
Introduction
REST Overview
- What is REST?
- What is a REST API?
- What is a REST Client?
- HTTP Methods and Resource Operations
- URLs, Query Strings, and Path Parameters
- HTTP Status Codes
- HTTP Headers and Body
- CURL and Postman
Web APIs with Actix
- What is a Web API?
- What is Actix?
- How does it compare to Express, Flask, and ASP.NET MVC?
- Create an Actix Project
- Run and Debug Actix Applications with VS Code
Routing
- What is Routing?
- Map HTTP Routes to Rust Functions
- Route Parameters
- Wire up Routes in an ActixWeb Application
Extractors
- What is an Extractor?
- Path Extractor
- Query String Extractor
- JSON Extractor
- URL-Encoded Form Extractor
- Other Extractors
- Custom Extractors
Request Handlers
- What is a Request Handler?
- Stages of Handling a Request
- Responder Trait
- Respond with a Custom Type
- Streaming Response Body
- Different Response Types
Middleware
- What is Middleware?
- Request/Response Pipeline
- Logging
- User Sessions
- Error Handling
- Custom Middleware
Static Files
Database Programming
- What is a Database?
- Connect to a Database
- Query data from the database
- Modify data in the database
Testing
- Integration Testing
- Stream Response Testing
- Unit Testing Extractors
- Unit Testing Middleware
- Unit Testing Responders
Deployment
Build a Release Version
Public the Release Version
Hosting Considerations
Dockerize the Application
TENHO INTERESSE