# blaxbb/ghapitest architecture

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

- Interactive diagram: https://gitdiagram.com/blaxbb/ghapitest
- Repository: https://github.com/blaxbb/ghapitest

## Overview

This is a small Blazor WebAssembly client paired with an ASP.NET Core weather API. The visible API workflow registers and dispatches controller routes; its GET handler generates forecast records, while its POST handler echoes a submitted location. The client entry point mounts the root component and configures an HttpClient, but the supplied excerpts do not show page routing or API requests. The README is empty, and unsampled page behavior and client/server wiring are therefore not inferred.

Main entry points: [`WebAPI/Controllers/WeatherForecastController.cs`](https://github.com/blaxbb/ghapitest/blob/main/WebAPI/Controllers/WeatherForecastController.cs) (Forecast controller), [`Blazor/Program.cs`](https://github.com/blaxbb/ghapitest/blob/main/Blazor/Program.cs) (Client host), [`WebAPI/Program.cs`](https://github.com/blaxbb/ghapitest/blob/main/WebAPI/Program.cs) (API host), [`Blazor/App.razor`](https://github.com/blaxbb/ghapitest/blob/main/Blazor/App.razor) (App root)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Blazor client"]
  node_client_host["Client host<br/>[Program.cs]"]
  node_app_root["App root<br/>[App.razor]"]
  node_home["Home page<br/>[Home.razor]"]
  node_weather_page["Weather page<br/>[Weather.razor]"]
  node_counter["Counter page<br/>[Counter.razor]"]
  node_not_found["Not found page<br/>[NotFound.razor]"]
  node_layout["Main layout<br/>[MainLayout.razor]"]
  node_navigation["Navigation menu<br/>[NavMenu.razor]"]
end

subgraph group_api["Weather API"]
  node_api_host["API host<br/>[Program.cs]"]
  node_forecast_controller["Forecast controller"]
  node_forecast_model["Forecast model<br/>[WeatherForecast.cs]"]
end

node_user(("Browser user"))

node_client_host -->|"mounts"| node_app_root
node_api_host -->|"maps routes"| node_forecast_controller
node_forecast_controller -->|"creates records"| node_forecast_model

click node_client_host "https://github.com/blaxbb/ghapitest/blob/main/Blazor/Program.cs"
click node_app_root "https://github.com/blaxbb/ghapitest/blob/main/Blazor/App.razor"
click node_home "https://github.com/blaxbb/ghapitest/blob/main/Blazor/Pages/Home.razor"
click node_weather_page "https://github.com/blaxbb/ghapitest/blob/main/Blazor/Pages/Weather.razor"
click node_counter "https://github.com/blaxbb/ghapitest/blob/main/Blazor/Pages/Counter.razor"
click node_not_found "https://github.com/blaxbb/ghapitest/blob/main/Blazor/Pages/NotFound.razor"
click node_layout "https://github.com/blaxbb/ghapitest/blob/main/Blazor/Layout/MainLayout.razor"
click node_navigation "https://github.com/blaxbb/ghapitest/blob/main/Blazor/Layout/NavMenu.razor"
click node_api_host "https://github.com/blaxbb/ghapitest/blob/main/WebAPI/Program.cs"
click node_forecast_controller "https://github.com/blaxbb/ghapitest/blob/main/WebAPI/Controllers/WeatherForecastController.cs"
click node_forecast_model "https://github.com/blaxbb/ghapitest/blob/main/WebAPI/WeatherForecast.cs"

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_client_host,node_app_root,node_home,node_weather_page,node_counter,node_not_found,node_layout,node_navigation,node_user toneBlue
class node_api_host,node_forecast_controller,node_forecast_model toneAmber
```

## Components

### Blazor client

- [Client host](https://github.com/blaxbb/ghapitest/blob/main/Blazor/Program.cs): `Blazor/Program.cs`
- [App root](https://github.com/blaxbb/ghapitest/blob/main/Blazor/App.razor): `Blazor/App.razor`
- [Home page](https://github.com/blaxbb/ghapitest/blob/main/Blazor/Pages/Home.razor): `Blazor/Pages/Home.razor`
- [Weather page](https://github.com/blaxbb/ghapitest/blob/main/Blazor/Pages/Weather.razor): `Blazor/Pages/Weather.razor`
- [Counter page](https://github.com/blaxbb/ghapitest/blob/main/Blazor/Pages/Counter.razor): `Blazor/Pages/Counter.razor`
- [Not found page](https://github.com/blaxbb/ghapitest/blob/main/Blazor/Pages/NotFound.razor): `Blazor/Pages/NotFound.razor`
- [Main layout](https://github.com/blaxbb/ghapitest/blob/main/Blazor/Layout/MainLayout.razor): `Blazor/Layout/MainLayout.razor`
- [Navigation menu](https://github.com/blaxbb/ghapitest/blob/main/Blazor/Layout/NavMenu.razor): `Blazor/Layout/NavMenu.razor`

### Weather API

- [API host](https://github.com/blaxbb/ghapitest/blob/main/WebAPI/Program.cs): `WebAPI/Program.cs`
- [Forecast controller](https://github.com/blaxbb/ghapitest/blob/main/WebAPI/Controllers/WeatherForecastController.cs): `WebAPI/Controllers/WeatherForecastController.cs`
- [Forecast model](https://github.com/blaxbb/ghapitest/blob/main/WebAPI/WeatherForecast.cs): `WebAPI/WeatherForecast.cs`

### Other components

- **Browser user**

## Connections

- Client host → App root: mounts (evidence: `Blazor/Program.cs`)
- API host → Forecast controller: maps routes (evidence: `WebAPI/Program.cs`)
- Forecast controller → Forecast model: creates records (evidence: `WebAPI/Controllers/WeatherForecastController.cs`)
