# thiago-vieira1/taskup-api architecture

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

- Interactive diagram: https://gitdiagram.com/thiago-vieira1/taskup-api
- Repository: https://github.com/thiago-vieira1/taskup-api

## Overview

TaskUp is a Django REST API for managing users, task categories, tasks, subtasks, notifications, and task history. Clients enter through the configured API routes; viewsets handle requests and use serializers and Django models for validation and persistence. The task endpoint additionally supports filtering, search, and ordering. Login issues token credentials, while the API schema has Swagger and ReDoc routes. The SQLite database and API wiring are explicit in settings and URL configuration; unsampled runtime behavior is not inferred.

Main entry points: [`config/urls.py`](https://github.com/thiago-vieira1/taskup-api/blob/main/config/urls.py) (API routes), [`tarefas/serializers.py`](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/serializers.py) (Task serializers), [`tarefas/models.py`](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/models.py) (Task and user models), [`tarefas/views.py`](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py) (Token login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API routing"]
  node_routes["API routes<br/>[urls.py]"]
  node_api_docs["API schema and docs<br/>[urls.py]"]
end

subgraph group_identity["Identity"]
  node_login["Token login<br/>[views.py]"]
  node_users["User endpoints<br/>[views.py]"]
  node_user_serialization["User serialization<br/>[serializers.py]"]
end

subgraph group_tasks["Task management"]
  node_categories["Category endpoints<br/>[views.py]"]
  node_tasks_api["Task endpoints and filters<br/>[views.py]"]
  node_subtasks["Subtask endpoints<br/>[views.py]"]
  node_notifications["Notification endpoints<br/>[views.py]"]
  node_history["Task history endpoints<br/>[views.py]"]
  node_task_serialization["Task serializers<br/>[serializers.py]"]
end

subgraph group_persistence["Persistence"]
  node_domain_models["Task and user models<br/>[models.py]"]
  node_sqlite[("SQLite database")]
end

node_client(("API client"))

node_client -->|"sends requests"| node_routes
node_routes -->|"routes login"| node_login
node_routes -->|"routes users"| node_users
node_routes -->|"routes categories"| node_categories
node_routes -->|"routes tasks"| node_tasks_api
node_routes -->|"routes subtasks"| node_subtasks
node_routes -->|"routes notifications"| node_notifications
node_routes -->|"routes history"| node_history
node_routes -->|"routes schema"| node_api_docs
node_login -->|"validates credentials"| node_user_serialization
node_login -->|"authenticates user"| node_domain_models
node_users -->|"serializes users"| node_user_serialization
node_categories -->|"serializes categories"| node_task_serialization
node_tasks_api -->|"serializes tasks"| node_task_serialization
node_subtasks -->|"serializes subtasks"| node_task_serialization
node_notifications -->|"serializes notifications"| node_task_serialization
node_history -->|"serializes history"| node_task_serialization
node_user_serialization -->|"maps users"| node_domain_models
node_task_serialization -->|"maps task entities"| node_domain_models
node_domain_models -->|"persists records"| node_sqlite

click node_routes "https://github.com/thiago-vieira1/taskup-api/blob/main/config/urls.py"
click node_api_docs "https://github.com/thiago-vieira1/taskup-api/blob/main/config/urls.py"
click node_login "https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py"
click node_users "https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py"
click node_user_serialization "https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/serializers.py"
click node_categories "https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py"
click node_tasks_api "https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py"
click node_subtasks "https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py"
click node_notifications "https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py"
click node_history "https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py"
click node_task_serialization "https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/serializers.py"
click node_domain_models "https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/models.py"

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_routes,node_api_docs,node_client toneBlue
class node_login,node_users,node_user_serialization toneAmber
class node_categories,node_tasks_api,node_subtasks,node_notifications,node_history,node_task_serialization toneMint
class node_domain_models,node_sqlite toneRose
```

## Components

### API routing

- [API routes](https://github.com/thiago-vieira1/taskup-api/blob/main/config/urls.py): `config/urls.py`
- [API schema and docs](https://github.com/thiago-vieira1/taskup-api/blob/main/config/urls.py): `config/urls.py`

### Identity

- [Token login](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py): `tarefas/views.py`
- [User endpoints](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py): `tarefas/views.py`
- [User serialization](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/serializers.py): `tarefas/serializers.py`

### Task management

- [Category endpoints](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py): `tarefas/views.py`
- [Task endpoints and filters](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py): `tarefas/views.py`
- [Subtask endpoints](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py): `tarefas/views.py`
- [Notification endpoints](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py): `tarefas/views.py`
- [Task history endpoints](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/views.py): `tarefas/views.py`
- [Task serializers](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/serializers.py): `tarefas/serializers.py`

### Persistence

- [Task and user models](https://github.com/thiago-vieira1/taskup-api/blob/main/tarefas/models.py): `tarefas/models.py`
- **SQLite database**

### Other components

- **API client**

## Connections

- API client → API routes: sends requests (evidence: `config/urls.py`)
- API routes → Token login: routes login (evidence: `config/urls.py`)
- API routes → User endpoints: routes users (evidence: `config/urls.py`)
- API routes → Category endpoints: routes categories (evidence: `config/urls.py`)
- API routes → Task endpoints and filters: routes tasks (evidence: `config/urls.py`)
- API routes → Subtask endpoints: routes subtasks (evidence: `config/urls.py`)
- API routes → Notification endpoints: routes notifications (evidence: `config/urls.py`)
- API routes → Task history endpoints: routes history (evidence: `config/urls.py`)
- API routes → API schema and docs: routes schema (evidence: `config/urls.py`)
- Token login → User serialization: validates credentials (evidence: `tarefas/views.py`)
- Token login → Task and user models: authenticates user (evidence: `tarefas/views.py`)
- User endpoints → User serialization: serializes users (evidence: `tarefas/views.py`)
- Category endpoints → Task serializers: serializes categories (evidence: `tarefas/views.py`)
- Task endpoints and filters → Task serializers: serializes tasks (evidence: `tarefas/views.py`)
- Subtask endpoints → Task serializers: serializes subtasks (evidence: `tarefas/views.py`)
- Notification endpoints → Task serializers: serializes notifications (evidence: `tarefas/views.py`)
- Task history endpoints → Task serializers: serializes history (evidence: `tarefas/views.py`)
- User serialization → Task and user models: maps users (evidence: `tarefas/serializers.py`)
- Task serializers → Task and user models: maps task entities (evidence: `tarefas/serializers.py`)
- Task and user models → SQLite database: persists records
