# vanessamdcastro/git-vs architecture

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

- Interactive diagram: https://gitdiagram.com/vanessamdcastro/git-vs
- Repository: https://github.com/vanessamdcastro/git-vs

## Overview

Delivery Tech API is a Spring Boot delivery backend. Its main workflow is a client submitting a pedido (order), which is validated against customer, restaurant, and product data, priced, persisted, and returned; customers can later inspect or change order status. Separate API areas support authentication, customer and catalog management, dashboard reporting, and health/operational monitoring. The README documents health and application-info endpoints and an H2 development database. Some controller and service excerpts are incomplete, so uncertain runtime links are omitted or marked unverified.

Main entry points: [`src/main/java/com/deliverytech/delivery_api/repository`](https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/repository) (JPA repositories), [`src/main/java/com/deliverytech/delivery_api/controller/AuthController.java`](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/AuthController.java) (Authentication API), [`src/main/java/com/deliverytech/delivery_api/controller/RestauranteController.java`](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/RestauranteController.java) (Restaurant API), [`src/main/java/com/deliverytech/delivery_api/service/impl/PedidoServiceImpl.java`](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/service/impl/PedidoServiceImpl.java) (Order workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API endpoints"]
  node_auth_api["Authentication API"]
  node_customer_api["Customer API"]
  node_order_api["Order API"]
  node_product_api["Product API"]
  node_restaurant_api["Restaurant API"]
  node_dashboard_api["Dashboard API"]
  node_health_api["Health API"]
end

subgraph group_identity["Identity and access"]
  node_auth_service["Authentication service<br/>[AuthService.java]"]
  node_jwt_security["JWT security"]
end

subgraph group_commerce["Delivery commerce"]
  node_customer_service["Customer service"]
  node_order_service["Order workflow"]
  node_product_service["Product service"]
  node_restaurant_service["Restaurant service"]
end

subgraph group_persistence["Domain persistence"]
  node_domain_models["Delivery domain"]
  node_repositories[("JPA repositories")]
  node_database[("H2 database")]
end

subgraph group_operations["Operations"]
  node_monitoring["Monitoring services"]
  node_health_checks["Health indicators"]
  node_audit_metrics["Audit and metrics"]
end

node_client(("API client"))

node_client -->|"checks health"| node_health_api
node_client -.->|"authenticates"| node_auth_api
node_client -.->|"manages customers"| node_customer_api
node_client -.->|"places orders"| node_order_api
node_client -.->|"browses products"| node_product_api
node_client -.->|"browses restaurants"| node_restaurant_api
node_client -.->|"views dashboard"| node_dashboard_api
node_auth_api -->|"delegates"| node_auth_service
node_auth_service -->|"loads users"| node_repositories
node_auth_api -.->|"uses tokens"| node_jwt_security
node_customer_api -.->|"delegates"| node_customer_service
node_order_api -->|"delegates"| node_order_service
node_product_api -.->|"delegates"| node_product_service
node_restaurant_api -->|"delegates"| node_restaurant_service
node_restaurant_api -->|"lists products"| node_product_service
node_order_service -->|"reads and saves"| node_repositories
node_product_service -.->|"uses repositories"| node_repositories
node_restaurant_service -.->|"uses repository"| node_repositories
node_repositories -.->|"persists entities"| node_database
node_order_service -->|"builds orders"| node_domain_models
node_health_api -.->|"reports status"| node_health_checks
node_dashboard_api -.->|"reads metrics"| node_monitoring

click node_auth_api "https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/AuthController.java"
click node_customer_api "https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/ClienteController.java"
click node_order_api "https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/PedidoController.java"
click node_product_api "https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/ProdutoController.java"
click node_restaurant_api "https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/RestauranteController.java"
click node_dashboard_api "https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/DashboardController.java"
click node_health_api "https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/HealthController.java"
click node_auth_service "https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/service/AuthService.java"
click node_jwt_security "https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/security"
click node_customer_service "https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/service"
click node_order_service "https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/service/impl/PedidoServiceImpl.java"
click node_product_service "https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/service/impl/ProdutoServiceImpl.java"
click node_restaurant_service "https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/service/impl/RestauranteServiceImpl.java"
click node_domain_models "https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/model"
click node_repositories "https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/repository"
click node_monitoring "https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/service"
click node_health_checks "https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/config/monitoring/health"
click node_audit_metrics "https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/config/monitoring"

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_auth_api,node_customer_api,node_order_api,node_product_api,node_restaurant_api,node_dashboard_api,node_health_api,node_client toneBlue
class node_auth_service,node_jwt_security toneAmber
class node_customer_service,node_order_service,node_product_service,node_restaurant_service toneMint
class node_domain_models,node_repositories,node_database toneRose
class node_monitoring,node_health_checks,node_audit_metrics toneIndigo
```

## Components

### API endpoints

- [Authentication API](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/AuthController.java): `src/main/java/com/deliverytech/delivery_api/controller/AuthController.java`
- [Customer API](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/ClienteController.java): `src/main/java/com/deliverytech/delivery_api/controller/ClienteController.java`
- [Order API](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/PedidoController.java): `src/main/java/com/deliverytech/delivery_api/controller/PedidoController.java`
- [Product API](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/ProdutoController.java): `src/main/java/com/deliverytech/delivery_api/controller/ProdutoController.java`
- [Restaurant API](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/RestauranteController.java): `src/main/java/com/deliverytech/delivery_api/controller/RestauranteController.java`
- [Dashboard API](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/DashboardController.java): `src/main/java/com/deliverytech/delivery_api/controller/DashboardController.java`
- [Health API](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/controller/HealthController.java): `src/main/java/com/deliverytech/delivery_api/controller/HealthController.java`

### Identity and access

- [Authentication service](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/service/AuthService.java): `src/main/java/com/deliverytech/delivery_api/service/AuthService.java`
- [JWT security](https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/security): `src/main/java/com/deliverytech/delivery_api/security`

### Delivery commerce

- [Customer service](https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/service): `src/main/java/com/deliverytech/delivery_api/service`
- [Order workflow](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/service/impl/PedidoServiceImpl.java): `src/main/java/com/deliverytech/delivery_api/service/impl/PedidoServiceImpl.java`
- [Product service](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/service/impl/ProdutoServiceImpl.java): `src/main/java/com/deliverytech/delivery_api/service/impl/ProdutoServiceImpl.java`
- [Restaurant service](https://github.com/vanessamdcastro/git-vs/blob/main/src/main/java/com/deliverytech/delivery_api/service/impl/RestauranteServiceImpl.java): `src/main/java/com/deliverytech/delivery_api/service/impl/RestauranteServiceImpl.java`

### Domain persistence

- [Delivery domain](https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/model): `src/main/java/com/deliverytech/delivery_api/model`
- [JPA repositories](https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/repository): `src/main/java/com/deliverytech/delivery_api/repository`
- **H2 database**

### Operations

- [Monitoring services](https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/service): `src/main/java/com/deliverytech/delivery_api/service`
- [Health indicators](https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/config/monitoring/health): `src/main/java/com/deliverytech/delivery_api/config/monitoring/health`
- [Audit and metrics](https://github.com/vanessamdcastro/git-vs/tree/main/src/main/java/com/deliverytech/delivery_api/config/monitoring): `src/main/java/com/deliverytech/delivery_api/config/monitoring`

### Other components

- **API client**

## Connections

- API client → Health API: checks health
- API client → Authentication API: authenticates
- API client → Customer API: manages customers
- API client → Order API: places orders
- API client → Product API: browses products
- API client → Restaurant API: browses restaurants
- API client → Dashboard API: views dashboard
- Authentication API → Authentication service: delegates (evidence: `src/main/java/com/deliverytech/delivery_api/controller/AuthController.java`)
- Authentication service → JPA repositories: loads users (evidence: `src/main/java/com/deliverytech/delivery_api/service/AuthService.java`)
- Authentication API → JWT security: uses tokens (evidence: `src/main/java/com/deliverytech/delivery_api/controller/AuthController.java`)
- Customer API → Customer service: delegates (evidence: `src/main/java/com/deliverytech/delivery_api/controller/ClienteController.java`)
- Order API → Order workflow: delegates (evidence: `src/main/java/com/deliverytech/delivery_api/controller/PedidoController.java`)
- Product API → Product service: delegates
- Restaurant API → Restaurant service: delegates (evidence: `src/main/java/com/deliverytech/delivery_api/controller/RestauranteController.java`)
- Restaurant API → Product service: lists products (evidence: `src/main/java/com/deliverytech/delivery_api/controller/RestauranteController.java`)
- Order workflow → JPA repositories: reads and saves (evidence: `src/main/java/com/deliverytech/delivery_api/service/impl/PedidoServiceImpl.java`)
- Product service → JPA repositories: uses repositories (evidence: `src/main/java/com/deliverytech/delivery_api/service/impl/ProdutoServiceImpl.java`)
- Restaurant service → JPA repositories: uses repository (evidence: `src/main/java/com/deliverytech/delivery_api/service/impl/RestauranteServiceImpl.java`)
- JPA repositories → H2 database: persists entities
- Order workflow → Delivery domain: builds orders (evidence: `src/main/java/com/deliverytech/delivery_api/service/impl/PedidoServiceImpl.java`)
- Health API → Health indicators: reports status
- Dashboard API → Monitoring services: reads metrics
