# deepakporwal/webapik6demo architecture

> Architecture diagram of the GitHub repository deepakporwal/webapik6demo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/deepakporwal/webapik6demo
- Repository: https://github.com/deepakporwal/webapik6demo

## Overview

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: [`WebApiK6Demo/Program.cs`](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Program.cs) (ASP.NET host), [`WebApiK6Demo/perfomance/loadtest.js`](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/perfomance/loadtest.js) (k6 load script), [`WebApiK6Demo/perfomance/test.yml`](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/perfomance/test.yml) (Taurus configuration), [`WebApiK6Demo/Controllers/WeatherForecastController.cs`](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Controllers/WeatherForecastController.cs) (Forecast controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Web API"]
  node_api_host["ASP.NET host<br/>[Program.cs]"]
  node_root["Root endpoint<br/>[Program.cs]"]
  node_health["Health endpoint<br/>[Program.cs]"]
  node_hello["Greeting endpoint<br/>[Program.cs]"]
  node_forecast_controller["Forecast controller"]
  node_forecast_model["Forecast model<br/>[WeatherForecast.cs]"]
  node_swagger["Swagger UI<br/>[Program.cs]"]
end

subgraph group_performance["Performance testing"]
  node_k6_script["k6 load script<br/>[loadtest.js]"]
  node_taurus_config["Taurus configuration<br/>[test.yml]"]
end

node_client(("HTTP client"))
node_test_target(("HTTP test target"))
node_blazemeter(("BlazeMeter"))

node_client -->|"sends requests"| node_api_host
node_api_host -->|"maps route"| node_root
node_api_host -->|"maps route"| node_health
node_api_host -->|"maps route"| node_hello
node_api_host -->|"maps controllers"| node_forecast_controller
node_api_host -->|"enables in development"| node_swagger
node_k6_script -->|"sends requests"| node_test_target
node_k6_script -.->|"can test"| node_api_host
node_taurus_config -.->|"reports to"| node_blazemeter

click node_api_host "https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Program.cs"
click node_root "https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Program.cs"
click node_health "https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Program.cs"
click node_hello "https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Program.cs"
click node_forecast_controller "https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Controllers/WeatherForecastController.cs"
click node_forecast_model "https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/WeatherForecast.cs"
click node_swagger "https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Program.cs"
click node_k6_script "https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/perfomance/loadtest.js"
click node_taurus_config "https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/perfomance/test.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_api_host,node_root,node_health,node_hello,node_forecast_controller,node_forecast_model,node_swagger,node_client toneBlue
class node_k6_script,node_taurus_config toneAmber
class node_test_target,node_blazemeter toneIndigo
```

## Components

### Web API

- [ASP.NET host](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Program.cs): `WebApiK6Demo/Program.cs`
- [Root endpoint](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Program.cs): `WebApiK6Demo/Program.cs`
- [Health endpoint](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Program.cs): `WebApiK6Demo/Program.cs`
- [Greeting endpoint](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Program.cs): `WebApiK6Demo/Program.cs`
- [Forecast controller](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Controllers/WeatherForecastController.cs): `WebApiK6Demo/Controllers/WeatherForecastController.cs`
- [Forecast model](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/WeatherForecast.cs): `WebApiK6Demo/WeatherForecast.cs`
- [Swagger UI](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/Program.cs): `WebApiK6Demo/Program.cs`

### Performance testing

- [k6 load script](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/perfomance/loadtest.js): `WebApiK6Demo/perfomance/loadtest.js`
- [Taurus configuration](https://github.com/deepakporwal/webapik6demo/blob/master/WebApiK6Demo/perfomance/test.yml): `WebApiK6Demo/perfomance/test.yml`

### Other components

- **HTTP client**
- **HTTP test target**
- **BlazeMeter**

## Connections

- HTTP client → ASP.NET host: sends requests (evidence: `README.md`)
- ASP.NET host → Root endpoint: maps route (evidence: `WebApiK6Demo/Program.cs`)
- ASP.NET host → Health endpoint: maps route (evidence: `WebApiK6Demo/Program.cs`)
- ASP.NET host → Greeting endpoint: maps route (evidence: `WebApiK6Demo/Program.cs`)
- ASP.NET host → Forecast controller: maps controllers (evidence: `WebApiK6Demo/Program.cs`)
- ASP.NET host → Swagger UI: enables in development (evidence: `WebApiK6Demo/Program.cs`)
- k6 load script → HTTP test target: sends requests (evidence: `WebApiK6Demo/perfomance/loadtest.js`)
- k6 load script → ASP.NET host: can test (evidence: `README.md`)
- Taurus configuration → BlazeMeter: reports to (evidence: `README.md`)
