# shreyxsdesxi/softwareassetmanagement architecture

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

- Interactive diagram: https://gitdiagram.com/shreyxsdesxi/softwareassetmanagement
- Repository: https://github.com/shreyxsdesxi/softwareassetmanagement

## Overview

This repository combines a Spring Cloud Config Server with a licensing REST service. A client calls the licensing endpoints to retrieve or mutate a license; the controller delegates license operations to the service, which builds license responses and localized messages. The config server is a separate product capability, with licensing configuration files present in the tree. Its connection to the licensing service cannot be verified from the available excerpts, so that relationship is not drawn.

Main entry points: [`licensing-service/src/main/java/com/optimagrowth/license/service/LicenseService.java`](https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/licensing-service/src/main/java/com/optimagrowth/license/service/LicenseService.java) (License Service), [`licensing-service/src/main/java/com/optimagrowth/license/controller/LicenseController.java`](https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/licensing-service/src/main/java/com/optimagrowth/license/controller/LicenseController.java) (License Controller), [`licensing-service/src/main/java/com/optimagrowth/license/LicensingServiceApplication.java`](https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/licensing-service/src/main/java/com/optimagrowth/license/LicensingServiceApplication.java) (Licensing Application), [`licensing-service/src/main/java/com/optimagrowth/license/model/License.java`](https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/licensing-service/src/main/java/com/optimagrowth/license/model/License.java) (License Model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_config["Configuration"]
  node_config_server["Config Server"]
  node_config_files["Service Configurations"]
end

subgraph group_licensing["Licensing API"]
  node_licensing_app["Licensing Application"]
  node_license_controller["License Controller"]
  node_license_service["License Service"]
  node_license_model["License Model<br/>[License.java]"]
end

subgraph group_presentation["Response Support"]
  node_message_source["Message Source"]
  node_message_bundles["Message Bundles"]
end

node_client(("API Client"))

node_client -->|"calls endpoints"| node_license_controller
node_license_controller -->|"delegates operations"| node_license_service
node_license_service -->|"builds license"| node_license_model
node_license_service -->|"gets messages"| node_message_source
node_licensing_app -->|"sets basename"| node_message_bundles

click node_config_server "https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/config-server/src/main/java/com/optimagrowth/configserver/ConfigServerApplication.java"
click node_config_files "https://github.com/shreyxsdesxi/softwareassetmanagement/tree/master/config-server/src/main/resources/config"
click node_licensing_app "https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/licensing-service/src/main/java/com/optimagrowth/license/LicensingServiceApplication.java"
click node_license_controller "https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/licensing-service/src/main/java/com/optimagrowth/license/controller/LicenseController.java"
click node_license_service "https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/licensing-service/src/main/java/com/optimagrowth/license/service/LicenseService.java"
click node_license_model "https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/licensing-service/src/main/java/com/optimagrowth/license/model/License.java"
click node_message_bundles "https://github.com/shreyxsdesxi/softwareassetmanagement/tree/master/licensing-service/src/main/resources"

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_config_server,node_config_files,node_client toneBlue
class node_licensing_app,node_license_controller,node_license_service,node_license_model toneAmber
class node_message_source,node_message_bundles toneMint
```

## Components

### Configuration

- [Config Server](https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/config-server/src/main/java/com/optimagrowth/configserver/ConfigServerApplication.java): `config-server/src/main/java/com/optimagrowth/configserver/ConfigServerApplication.java`
- [Service Configurations](https://github.com/shreyxsdesxi/softwareassetmanagement/tree/master/config-server/src/main/resources/config): `config-server/src/main/resources/config`

### Licensing API

- [Licensing Application](https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/licensing-service/src/main/java/com/optimagrowth/license/LicensingServiceApplication.java): `licensing-service/src/main/java/com/optimagrowth/license/LicensingServiceApplication.java`
- [License Controller](https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/licensing-service/src/main/java/com/optimagrowth/license/controller/LicenseController.java): `licensing-service/src/main/java/com/optimagrowth/license/controller/LicenseController.java`
- [License Service](https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/licensing-service/src/main/java/com/optimagrowth/license/service/LicenseService.java): `licensing-service/src/main/java/com/optimagrowth/license/service/LicenseService.java`
- [License Model](https://github.com/shreyxsdesxi/softwareassetmanagement/blob/master/licensing-service/src/main/java/com/optimagrowth/license/model/License.java): `licensing-service/src/main/java/com/optimagrowth/license/model/License.java`

### Response Support

- **Message Source**
- [Message Bundles](https://github.com/shreyxsdesxi/softwareassetmanagement/tree/master/licensing-service/src/main/resources): `licensing-service/src/main/resources`

### Other components

- **API Client**

## Connections

- API Client → License Controller: calls endpoints (evidence: `licensing-service/src/main/java/com/optimagrowth/license/controller/LicenseController.java`)
- License Controller → License Service: delegates operations (evidence: `licensing-service/src/main/java/com/optimagrowth/license/controller/LicenseController.java`)
- License Service → License Model: builds license (evidence: `licensing-service/src/main/java/com/optimagrowth/license/service/LicenseService.java`)
- License Service → Message Source: gets messages (evidence: `licensing-service/src/main/java/com/optimagrowth/license/service/LicenseService.java`)
- Licensing Application → Message Bundles: sets basename (evidence: `licensing-service/src/main/java/com/optimagrowth/license/LicensingServiceApplication.java`)
