# bharatbk656/springbootazuresql architecture

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

- Interactive diagram: https://gitdiagram.com/bharatbk656/springbootazuresql
- Repository: https://github.com/bharatbk656/springbootazuresql

## Overview

This is a small Spring Boot REST service for user details. A client submits a user record or requests the full collection; the application controller delegates persistence to a Spring Data repository, which manages `UserDetails` entities. The README identifies the project as SpringbootAzureSQL, but the available source does not show database connection settings or verify the specific SQL backend, so that integration is shown as unverified.

Main entry points: [`src/main/java/com/rest/azure/springazurerestpoc/model/UserDetailsRepository.java`](https://github.com/bharatbk656/springbootazuresql/blob/main/src/main/java/com/rest/azure/springazurerestpoc/model/UserDetailsRepository.java) (User details repository), [`src/main/java/com/rest/azure/springazurerestpoc/SpringAzureRestPocApplication.java`](https://github.com/bharatbk656/springbootazuresql/blob/main/src/main/java/com/rest/azure/springazurerestpoc/SpringAzureRestPocApplication.java) (User details API), [`src/main/java/com/rest/azure/springazurerestpoc/model/UserDetails.java`](https://github.com/bharatbk656/springbootazuresql/blob/main/src/main/java/com/rest/azure/springazurerestpoc/model/UserDetails.java) (User details entity)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["REST API"]
  node_controller["User details API"]
end

subgraph group_persistence["Persistence"]
  node_repository["User details repository"]
  node_entity["User details entity<br/>[UserDetails.java]"]
end

node_client(("REST client"))
node_sql[("SQL database")]

node_client -->|"HTTP requests"| node_controller
node_controller -->|"saves or lists"| node_repository
node_repository -->|"manages entities"| node_entity
node_repository -.->|"persists data"| node_sql

click node_controller "https://github.com/bharatbk656/springbootazuresql/blob/main/src/main/java/com/rest/azure/springazurerestpoc/SpringAzureRestPocApplication.java"
click node_repository "https://github.com/bharatbk656/springbootazuresql/blob/main/src/main/java/com/rest/azure/springazurerestpoc/model/UserDetailsRepository.java"
click node_entity "https://github.com/bharatbk656/springbootazuresql/blob/main/src/main/java/com/rest/azure/springazurerestpoc/model/UserDetails.java"

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_client toneBlue
class node_repository,node_entity,node_sql toneAmber
```

## Components

### REST API

- [User details API](https://github.com/bharatbk656/springbootazuresql/blob/main/src/main/java/com/rest/azure/springazurerestpoc/SpringAzureRestPocApplication.java): `src/main/java/com/rest/azure/springazurerestpoc/SpringAzureRestPocApplication.java`

### Persistence

- [User details repository](https://github.com/bharatbk656/springbootazuresql/blob/main/src/main/java/com/rest/azure/springazurerestpoc/model/UserDetailsRepository.java): `src/main/java/com/rest/azure/springazurerestpoc/model/UserDetailsRepository.java`
- [User details entity](https://github.com/bharatbk656/springbootazuresql/blob/main/src/main/java/com/rest/azure/springazurerestpoc/model/UserDetails.java): `src/main/java/com/rest/azure/springazurerestpoc/model/UserDetails.java`

### Other components

- **REST client**
- **SQL database**

## Connections

- REST client → User details API: HTTP requests (evidence: `src/main/java/com/rest/azure/springazurerestpoc/SpringAzureRestPocApplication.java`)
- User details API → User details repository: saves or lists (evidence: `src/main/java/com/rest/azure/springazurerestpoc/SpringAzureRestPocApplication.java`)
- User details repository → User details entity: manages entities (evidence: `src/main/java/com/rest/azure/springazurerestpoc/model/UserDetailsRepository.java`)
- User details repository → SQL database: persists data
