# kassioburgadon/sistemagestao architecture

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

- Interactive diagram: https://gitdiagram.com/kassioburgadon/sistemagestao
- Repository: https://github.com/kassioburgadon/sistemagestao

## Overview

SistemaGestao is an ASP.NET Core task-management API. A client sends task requests to the Tarefas controller; the controller validates and maps create/update DTOs, performs CRUD and status/date filtering through the EF Core context, and returns task data or HTTP results. The task entity defines the domain record and status values, while the context exposes its EF set. The README also documents Swagger/OpenAPI. Program configuration and database wiring were not sampled, so those runtime connections are not asserted.

Main entry points: [`SistemaGestao/Controllers/TarefasController.cs`](https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Controllers/TarefasController.cs) (Task Endpoints), [`SistemaGestao/Data/SistemaGestaoContext.cs`](https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Data/SistemaGestaoContext.cs) (EF Context), [`SistemaGestao/Program.cs`](https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Program.cs) (Swagger / OpenAPI), [`SistemaGestao/Dtos/TarefaCreateDto.cs`](https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Dtos/TarefaCreateDto.cs) (Create DTO)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API"]
  node_controller["Task Endpoints"]
  node_swagger["Swagger / OpenAPI<br/>[Program.cs]"]
end

subgraph group_contracts["Task Contracts"]
  node_create["Create DTO<br/>[TarefaCreateDto.cs]"]
  node_update["Update DTO<br/>[TarefaUpdateDto.cs]"]
  node_read["Read DTO<br/>[TarefaReadDto.cs]"]
end

subgraph group_domain["Domain and Data"]
  node_task["Task Entity<br/>[Tarefa.cs]"]
  node_context["EF Context"]
  node_store[("In-Memory Store")]
end

node_client(("API Client"))

node_client -->|"sends requests"| node_controller
node_controller -->|"accepts input"| node_create
node_controller -->|"accepts input"| node_update
node_controller -->|"projects results"| node_read
node_controller -->|"queries and saves"| node_context
node_context -->|"exposes set"| node_task
node_context -.->|"uses provider"| node_store
node_client -->|"views API docs"| node_swagger

click node_controller "https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Controllers/TarefasController.cs"
click node_create "https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Dtos/TarefaCreateDto.cs"
click node_update "https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Dtos/TarefaUpdateDto.cs"
click node_read "https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Dtos/TarefaReadDto.cs"
click node_task "https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Models/Tarefa.cs"
click node_context "https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Data/SistemaGestaoContext.cs"
click node_swagger "https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Program.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_controller,node_swagger,node_client toneBlue
class node_create,node_update,node_read toneAmber
class node_task,node_context,node_store toneMint
```

## Components

### API

- [Task Endpoints](https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Controllers/TarefasController.cs): `SistemaGestao/Controllers/TarefasController.cs`
- [Swagger / OpenAPI](https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Program.cs): `SistemaGestao/Program.cs`

### Task Contracts

- [Create DTO](https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Dtos/TarefaCreateDto.cs): `SistemaGestao/Dtos/TarefaCreateDto.cs`
- [Update DTO](https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Dtos/TarefaUpdateDto.cs): `SistemaGestao/Dtos/TarefaUpdateDto.cs`
- [Read DTO](https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Dtos/TarefaReadDto.cs): `SistemaGestao/Dtos/TarefaReadDto.cs`

### Domain and Data

- [Task Entity](https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Models/Tarefa.cs): `SistemaGestao/Models/Tarefa.cs`
- [EF Context](https://github.com/kassioburgadon/sistemagestao/blob/develop/SistemaGestao/Data/SistemaGestaoContext.cs): `SistemaGestao/Data/SistemaGestaoContext.cs`
- **In-Memory Store**

### Other components

- **API Client**

## Connections

- API Client → Task Endpoints: sends requests (evidence: `README.md`)
- Task Endpoints → Create DTO: accepts input (evidence: `SistemaGestao/Controllers/TarefasController.cs`)
- Task Endpoints → Update DTO: accepts input (evidence: `SistemaGestao/Controllers/TarefasController.cs`)
- Task Endpoints → Read DTO: projects results (evidence: `SistemaGestao/Controllers/TarefasController.cs`)
- Task Endpoints → EF Context: queries and saves (evidence: `SistemaGestao/Controllers/TarefasController.cs`)
- EF Context → Task Entity: exposes set (evidence: `SistemaGestao/Data/SistemaGestaoContext.cs`)
- EF Context → In-Memory Store: uses provider
- API Client → Swagger / OpenAPI: views API docs (evidence: `README.md`)
