# kumabes-org/insurance-catalog architecture

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

- Interactive diagram: https://gitdiagram.com/kumabes-org/insurance-catalog
- Repository: https://github.com/kumabes-org/insurance-catalog

## Overview

This is a small Spring Boot catalog application with two user-facing routes: a JSON catalog listing and a server-rendered home page. The listing currently constructs sample catalog data in the REST controller and returns it using a response DTO; no domain model or persistence implementation is present in the tree. The home controller supplies application and host details to the index template. Relationships are limited to those visible in the excerpts; framework dispatch is not mapped.

Main entry points: [`app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/rest/CatalogController.java`](https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/rest/CatalogController.java) (Catalog endpoint), [`app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/web/CatalogWebController.java`](https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/web/CatalogWebController.java) (Home endpoint), [`app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/rest/CatalogResponseDTO.java`](https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/rest/CatalogResponseDTO.java) (Catalog response DTO), [`app/src/main/resources/templates/index.html`](https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/resources/templates/index.html) (Index template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_springapp["Spring Boot app<br/>[SpringApp.java]"]
end

subgraph group_catalog["Catalog API"]
  node_catalog_controller["Catalog endpoint"]
  node_catalog_dto["Catalog response DTO"]
end

subgraph group_web["Home page"]
  node_web_controller["Home endpoint"]
  node_index_template["Index template<br/>[index.html]"]
end

node_client(("HTTP client"))

node_catalog_controller -->|"constructs"| node_catalog_dto
node_catalog_controller -->|"returns JSON"| node_client
node_web_controller -->|"selects view"| node_index_template

click node_springapp "https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/java/br/com/kumabe/catalogs/SpringApp.java"
click node_catalog_controller "https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/rest/CatalogController.java"
click node_catalog_dto "https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/rest/CatalogResponseDTO.java"
click node_web_controller "https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/web/CatalogWebController.java"
click node_index_template "https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/resources/templates/index.html"

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_springapp,node_client toneBlue
class node_catalog_controller,node_catalog_dto toneAmber
class node_web_controller,node_index_template toneMint
```

## Components

### Application entry

- [Spring Boot app](https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/java/br/com/kumabe/catalogs/SpringApp.java): `app/src/main/java/br/com/kumabe/catalogs/SpringApp.java`

### Catalog API

- [Catalog endpoint](https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/rest/CatalogController.java): `app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/rest/CatalogController.java`
- [Catalog response DTO](https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/rest/CatalogResponseDTO.java): `app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/rest/CatalogResponseDTO.java`

### Home page

- [Home endpoint](https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/web/CatalogWebController.java): `app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/web/CatalogWebController.java`
- [Index template](https://github.com/kumabes-org/insurance-catalog/blob/main/app/src/main/resources/templates/index.html): `app/src/main/resources/templates/index.html`

### Other components

- **HTTP client**

## Connections

- Catalog endpoint → Catalog response DTO: constructs (evidence: `app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/rest/CatalogController.java`)
- Catalog endpoint → HTTP client: returns JSON (evidence: `app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/rest/CatalogController.java`)
- Home endpoint → Index template: selects view (evidence: `app/src/main/java/br/com/kumabe/catalogs/infrastructure/adapters/in/web/CatalogWebController.java`)
