# sullaspqr/muszakicikkek-api-dotnet10 architecture

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

- Interactive diagram: https://gitdiagram.com/sullaspqr/muszakicikkek-api-dotnet10
- Repository: https://github.com/sullaspqr/muszakicikkek-api-dotnet10

## Overview

This is a small ASP.NET API for product-type records. A client can retrieve all records or one by ID, and create a record; the controllers delegate these operations to a static service that stores records in memory. The service also implements update and delete helpers, though no exposed controller route for them appears in the sampled code. The README confirms JSON responses and no EF or database. Program.cs was not sampled, so host configuration and registration are not mapped.

Main entry points: [`Controllers/TipusokController.cs`](https://github.com/sullaspqr/muszakicikkek-api-dotnet10/blob/master/Controllers/TipusokController.cs) (Read endpoints), [`Controllers/UjTipusokController.cs`](https://github.com/sullaspqr/muszakicikkek-api-dotnet10/blob/master/Controllers/UjTipusokController.cs) (Create endpoint), [`Services/TipusokService.cs`](https://github.com/sullaspqr/muszakicikkek-api-dotnet10/blob/master/Services/TipusokService.cs) (Tipusok service), [`Models/Tipusok.cs`](https://github.com/sullaspqr/muszakicikkek-api-dotnet10/blob/master/Models/Tipusok.cs) (Product type)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["HTTP API"]
  node_get_controller["Read endpoints"]
  node_create_controller["Create endpoint"]
end

subgraph group_data["In-memory data"]
  node_service["Tipusok service<br/>[TipusokService.cs]"]
  node_record["Product type<br/>[Tipusok.cs]"]
end

node_client(("API client"))

node_client -->|"GET records"| node_get_controller
node_client -->|"POST record"| node_create_controller
node_get_controller -->|"calls reads"| node_service
node_create_controller -->|"calls add"| node_service
node_service -->|"stores and finds"| node_record
node_get_controller -->|"returns JSON data"| node_client
node_create_controller -->|"returns created record"| node_client

click node_get_controller "https://github.com/sullaspqr/muszakicikkek-api-dotnet10/blob/master/Controllers/TipusokController.cs"
click node_create_controller "https://github.com/sullaspqr/muszakicikkek-api-dotnet10/blob/master/Controllers/UjTipusokController.cs"
click node_service "https://github.com/sullaspqr/muszakicikkek-api-dotnet10/blob/master/Services/TipusokService.cs"
click node_record "https://github.com/sullaspqr/muszakicikkek-api-dotnet10/blob/master/Models/Tipusok.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_get_controller,node_create_controller,node_client toneBlue
class node_service,node_record toneAmber
```

## Components

### HTTP API

- [Read endpoints](https://github.com/sullaspqr/muszakicikkek-api-dotnet10/blob/master/Controllers/TipusokController.cs): `Controllers/TipusokController.cs`
- [Create endpoint](https://github.com/sullaspqr/muszakicikkek-api-dotnet10/blob/master/Controllers/UjTipusokController.cs): `Controllers/UjTipusokController.cs`

### In-memory data

- [Tipusok service](https://github.com/sullaspqr/muszakicikkek-api-dotnet10/blob/master/Services/TipusokService.cs): `Services/TipusokService.cs`
- [Product type](https://github.com/sullaspqr/muszakicikkek-api-dotnet10/blob/master/Models/Tipusok.cs): `Models/Tipusok.cs`

### Other components

- **API client**

## Connections

- API client → Read endpoints: GET records (evidence: `Controllers/TipusokController.cs`)
- API client → Create endpoint: POST record (evidence: `Controllers/UjTipusokController.cs`)
- Read endpoints → Tipusok service: calls reads (evidence: `Controllers/TipusokController.cs`)
- Create endpoint → Tipusok service: calls add (evidence: `Controllers/UjTipusokController.cs`)
- Tipusok service → Product type: stores and finds (evidence: `Services/TipusokService.cs`)
- Read endpoints → API client: returns JSON data (evidence: `Controllers/TipusokController.cs`)
- Create endpoint → API client: returns created record (evidence: `Controllers/UjTipusokController.cs`)
