# palakrk1056-ship-it/it_support_ticket_system architecture

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

- Interactive diagram: https://gitdiagram.com/palakrk1056-ship-it/it_support_ticket_system
- Repository: https://github.com/palakrk1056-ship-it/it_support_ticket_system

## Overview

This is an ASP.NET MVC ticket-management application backed by a separate REST API and PostgreSQL. A user works through ticket pages for listing, viewing, creating, editing, and deleting tickets; the MVC controller delegates HTTP operations to a typed API service, the API controller performs ticket CRUD through Entity Framework, and the database persists the records. The excerpts support this primary flow and the application registrations. The README is empty, so broader capabilities are not documented; view behavior is represented at the view-directory level.

Main entry points: [`TicketSystem.Web/Controllers/TicketsController.cs`](https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Web/Controllers/TicketsController.cs) (Ticket actions), [`TicketSystem.Api/Data/AppDbContext.cs`](https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Api/Data/AppDbContext.cs) (Ticket context), [`TicketSystem.Web/Services/TicketApiService.cs`](https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Web/Services/TicketApiService.cs) (API client), [`TicketSystem.Web/Views/Tickets`](https://github.com/palakrk1056-ship-it/it_support_ticket_system/tree/main/TicketSystem.Web/Views/Tickets) (Ticket pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_ticket_pages["Ticket pages<br/>[Tickets]"]
  node_web_tickets["Ticket actions"]
  node_ticket_service["API client"]
  node_ticket_vm["Ticket view model<br/>[TicketViewModel.cs]"]
  node_home["Home and errors<br/>[HomeController.cs]"]
  node_error_vm["Error model<br/>[ErrorViewModel.cs]"]
end

subgraph group_api["Ticket API"]
  node_api_runtime["API runtime<br/>[Program.cs]"]
  node_api_tickets["Ticket endpoints"]
  node_ticket_entity["Ticket entity<br/>[Ticket.cs]"]
end

subgraph group_persistence["Persistence"]
  node_db_context["Ticket context<br/>[AppDbContext.cs]"]
  node_postgres[("PostgreSQL")]
end

node_user(("Ticket user"))

node_user -.->|"uses"| node_ticket_pages
node_ticket_pages -.->|"submits"| node_web_tickets
node_web_tickets -->|"renders"| node_ticket_pages
node_web_tickets -->|"calls"| node_ticket_service
node_ticket_service -->|"HTTP requests"| node_api_tickets
node_ticket_service -->|"serializes"| node_ticket_vm
node_web_tickets -->|"accepts"| node_ticket_vm
node_api_runtime -->|"maps routes"| node_api_tickets
node_api_tickets -->|"queries and saves"| node_db_context
node_db_context -->|"stores set"| node_ticket_entity
node_api_runtime -->|"registers"| node_db_context
node_db_context -.->|"persists"| node_postgres
node_home -->|"creates"| node_error_vm

click node_ticket_pages "https://github.com/palakrk1056-ship-it/it_support_ticket_system/tree/main/TicketSystem.Web/Views/Tickets"
click node_web_tickets "https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Web/Controllers/TicketsController.cs"
click node_ticket_service "https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Web/Services/TicketApiService.cs"
click node_ticket_vm "https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Web/Models/TicketViewModel.cs"
click node_home "https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Web/Controllers/HomeController.cs"
click node_error_vm "https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Web/Models/ErrorViewModel.cs"
click node_api_runtime "https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Api/Program.cs"
click node_api_tickets "https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Api/Controllers/TicketsController.cs"
click node_ticket_entity "https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Api/Models/Ticket.cs"
click node_db_context "https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Api/Data/AppDbContext.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_ticket_pages,node_web_tickets,node_ticket_service,node_ticket_vm,node_home,node_error_vm,node_user toneBlue
class node_api_runtime,node_api_tickets,node_ticket_entity toneAmber
class node_db_context,node_postgres toneMint
```

## Components

### Web interface

- [Ticket pages](https://github.com/palakrk1056-ship-it/it_support_ticket_system/tree/main/TicketSystem.Web/Views/Tickets): `TicketSystem.Web/Views/Tickets`
- [Ticket actions](https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Web/Controllers/TicketsController.cs): `TicketSystem.Web/Controllers/TicketsController.cs`
- [API client](https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Web/Services/TicketApiService.cs): `TicketSystem.Web/Services/TicketApiService.cs`
- [Ticket view model](https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Web/Models/TicketViewModel.cs): `TicketSystem.Web/Models/TicketViewModel.cs`
- [Home and errors](https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Web/Controllers/HomeController.cs): `TicketSystem.Web/Controllers/HomeController.cs`
- [Error model](https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Web/Models/ErrorViewModel.cs): `TicketSystem.Web/Models/ErrorViewModel.cs`

### Ticket API

- [API runtime](https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Api/Program.cs): `TicketSystem.Api/Program.cs`
- [Ticket endpoints](https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Api/Controllers/TicketsController.cs): `TicketSystem.Api/Controllers/TicketsController.cs`
- [Ticket entity](https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Api/Models/Ticket.cs): `TicketSystem.Api/Models/Ticket.cs`

### Persistence

- [Ticket context](https://github.com/palakrk1056-ship-it/it_support_ticket_system/blob/main/TicketSystem.Api/Data/AppDbContext.cs): `TicketSystem.Api/Data/AppDbContext.cs`
- **PostgreSQL**

### Other components

- **Ticket user**

## Connections

- Ticket user → Ticket pages: uses
- Ticket pages → Ticket actions: submits
- Ticket actions → Ticket pages: renders (evidence: `TicketSystem.Web/Controllers/TicketsController.cs`)
- Ticket actions → API client: calls (evidence: `TicketSystem.Web/Controllers/TicketsController.cs`)
- API client → Ticket endpoints: HTTP requests (evidence: `TicketSystem.Web/Services/TicketApiService.cs`)
- API client → Ticket view model: serializes (evidence: `TicketSystem.Web/Services/TicketApiService.cs`)
- Ticket actions → Ticket view model: accepts (evidence: `TicketSystem.Web/Controllers/TicketsController.cs`)
- API runtime → Ticket endpoints: maps routes (evidence: `TicketSystem.Api/Program.cs`)
- Ticket endpoints → Ticket context: queries and saves (evidence: `TicketSystem.Api/Controllers/TicketsController.cs`)
- Ticket context → Ticket entity: stores set (evidence: `TicketSystem.Api/Data/AppDbContext.cs`)
- API runtime → Ticket context: registers (evidence: `TicketSystem.Api/Program.cs`)
- Ticket context → PostgreSQL: persists
- Home and errors → Error model: creates (evidence: `TicketSystem.Web/Controllers/HomeController.cs`)
