Visão Geral
O curso Insomnia Fundamentals apresenta aos participantes os conceitos essenciais e as habilidades práticas necessárias para testar e interagir com APIs RESTful e GraphQL utilizando a ferramenta Insomnia.
Por meio de uma abordagem prática, o participante aprenderá a criar, enviar e gerenciar requisições de API de forma eficiente, explorando as principais funcionalidades da ferramenta. Além disso, o curso aborda o uso de variáveis, ambientes, autenticação e documentação automática, ajudando desenvolvedores, testadores e profissionais de DevOps a otimizarem seus fluxos de trabalho com APIs.
Objetivo
Após realizar o Curso Insomnia Fundamentals, você será capaz de:
- Entender o papel do Insomnia no desenvolvimento e teste de APIs.
- Configurar e enviar diferentes tipos de requisições HTTP (GET, POST, PUT, DELETE, PATCH).
- Gerenciar ambientes e variáveis para testes em múltiplos estágios.
- Autenticar e proteger requisições de API com tokens e credenciais.
- Automatizar fluxos simples com scripts de pré-requisição e pós-resposta.
- Gerar e compartilhar documentação de APIs diretamente no Insomnia.
Publico Alvo
- Desenvolvedores que trabalham com APIs REST ou GraphQL.
- Profissionais de QA e testadores de software focados em validação de APIs.
- Profissionais de DevOps que desejam integrar testes de API em pipelines de CI/CD.
- Estudantes e iniciantes que desejam aprender uma ferramenta moderna de teste de APIs.
Pre-Requisitos
- Conhecimento básico de conceitos de API e métodos HTTP.
- Noções de JSON e desenvolvimento web.
- Computador com o Insomnia instalado (versão mais recente).
Materiais
Inglês + Exercícios + Lab Pratico
Conteúdo Programatico
Module 1: Introduction to API Testing
- Understanding APIs: REST and GraphQL overview
- HTTP methods and status codes
- Key components of an API request and response
- Comparing popular API tools: Insomnia vs. Postman
Module 2: Getting Started with Insomnia
- Installing and configuring Insomnia
- Exploring the user interface
- Creating workspaces and projects
- Managing requests and collections
Module 3: Working with REST APIs
- Sending GET, POST, PUT, PATCH, and DELETE requests
- Adding headers and parameters
- Sending JSON data in the request body
- Handling API responses and status codes
Module 4: Authentication and Security
- Basic Authentication
- Bearer Tokens and API Keys
- OAuth 2.0 Authentication setup
- Managing credentials securely
Module 5: Environments and Variables
- Creating environments for development, testing, and production
- Using environment and global variables
- Dynamic values and secret management
Module 6: Working with GraphQL APIs
- Understanding GraphQL basics (queries and mutations)
- Creating and testing GraphQL requests in Insomnia
- Using variables in GraphQL queries
Module 7: Automation and Scripting
- Pre-request and post-response scripts
- Inserting dynamic timestamps, tokens, and random data
- Introduction to automating repetitive API tests
Module 8: Documentation and Collaboration
- Exporting and sharing collections
- Generating API documentation automatically
- Collaboration features for teams
- Best practices for organizing Insomnia projects
Module 9: Practical Exercises
- Testing public APIs (GitHub API, OpenWeather API, etc.)
- Debugging failed requests
- Building a complete workflow from request to documentation
TENHO INTERESSE