ASPNETCore6-REST_API-JWT-Postman_ContagemAcessos
Exemplo de implementação de testes de uma API REST criada com .NET 6 (e protegida com autenticação via JWT) para contagem de acessos utilizando Postman + Newman. Inclui Dockerfile com build desta aplicação formada por 2 projetos (ASP.NET Core + Class Library) e visando a geração de imagem Docker para Linux.
File Explorer
- launch.json
- tasks.json
- ContadorController.cs
- LoginController.cs
- ResultadoContador.cs
- launchSettings.json
- APIContagem.csproj
- APIContagem.sln
- appsettings.Development.json
- appsettings.json
- Contador.cs
- Program.cs
- AccessManager.cs
- APIs.Security.JWT.csproj
- ApiSecurityDbContext.cs
- ApplicationUser.cs
- Classes.cs
- IdentityInitializer.cs
- JwtSecurityExtension.cs
- SigningConfigurations.cs
- 01-post-prerequest.js
- 01-post-tests.js
- 02-get-tests.js
- APIContagemJWT.postman_collection.json
- data-authentication.json
- .gitignore
- Dockerfile
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
docker run
View Details ▼
docker run
This command is an alias of `docker container run`.
tldr docker container run
View documentation for the original command:
newman
View Details ▼
newman
Collection runner for Postman.
newman run {{path/to/collection.json}}
Run a collection (from a file):
newman run {{https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv}}
Run a collection (from a URL):
npm install
View Details ▼
npm install
Install Node packages.
npm {{[i|install]}}
Install dependencies listed in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}
Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
