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.
파일 탐색기
- 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
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
docker run
설명 보기 ▼
docker run
This command is an alias of `docker container run`.
tldr docker container run
View documentation for the original command:
newman
설명 보기 ▼
newman
Postman의 컬렉션 실행 도구.
더 많은 정보: <https://github.com/postmanlabs/newman#command-line-options>.
newman run {{path/to/collection.json}}
컬렉션 실행 (파일에서):
newman run {{https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv}}
컬렉션 실행 (URL에서):
npm install
설명 보기 ▼
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`:
