How deepakporwal/webapik6demo works
WebApiK6Demo is a small ASP.NET Core sample API paired with load/performance testing. The principal workflow is an HTTP request reaching the API, which serves a health, greeting, or weather response; the separate k6 script issues HTTP requests and checks responses. The README also documents Taurus/BlazeMeter testing. The controller and Taurus configuration were not excerpted, so their internal behavior and wiring are not inferred here.
Main entry points: Program.cs ASP.NET host · loadtest.js k6 load script · test.yml Taurus configuration · WeatherForecastController.cs Forecast controller
Components 12
Web API
- ASP.NET host
WebApiK6Demo/Program.cs - Root endpoint
WebApiK6Demo/Program.cs - Health endpoint
WebApiK6Demo/Program.cs - Greeting endpoint
WebApiK6Demo/Program.cs - Forecast controller
WebApiK6Demo/Controllers/WeatherForecastController.cs - Forecast model
WebApiK6Demo/WeatherForecast.cs - Swagger UI
WebApiK6Demo/Program.cs
Performance testing
- k6 load script
WebApiK6Demo/perfomance/loadtest.js - Taurus configuration
WebApiK6Demo/perfomance/test.yml
Other components
- HTTP client
- HTTP test target
- BlazeMeter
Connections 9
- HTTP client → ASP.NET host: sends requests
README.md - ASP.NET host → Root endpoint: maps route
WebApiK6Demo/Program.cs - ASP.NET host → Health endpoint: maps route
WebApiK6Demo/Program.cs - ASP.NET host → Greeting endpoint: maps route
WebApiK6Demo/Program.cs - ASP.NET host → Forecast controller: maps controllers
WebApiK6Demo/Program.cs - ASP.NET host → Swagger UI: enables in development
WebApiK6Demo/Program.cs - k6 load script → HTTP test target: sends requests
WebApiK6Demo/perfomance/loadtest.js - k6 load script → ASP.NET host: can test
README.md - Taurus configuration → BlazeMeter: reports to
README.md