# mannamanu/splkdemo architecture

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

- Interactive diagram: https://gitdiagram.com/mannamanu/splkdemo
- Repository: https://github.com/mannamanu/splkdemo

## Overview

This repository’s substantive source is a Python generator for a Spring Boot MISMO XML-to-JSON transformation service. The principal workflow accepts XML and an optional profile, validates against a profile-specific XSD, then transforms the XML to JSON. The excerpt shows the controller invoking validation and transformation, and the schema-loading code; it does not show the transformation service’s stylesheet-loading implementation, so that relationship is marked unverified. All repository components point to the generator file; generated Java/resource paths are not repository paths.

Main entry points: [`springboot.py`](https://github.com/mannamanu/splkdemo/blob/main/springboot.py) (Transform Endpoint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API and Errors"]
  node_endpoint["Transform Endpoint<br/>[springboot.py]"]
  node_error_handler["Error Responses<br/>[springboot.py]"]
end

subgraph group_transform["Transformation"]
  node_service["Transformation Service<br/>[springboot.py]"]
  node_schemas["Profile XSDs<br/>[springboot.py]"]
  node_stylesheets["XSLT Profiles<br/>[springboot.py]"]
  node_json["JSON Result<br/>[springboot.py]"]
end

node_client(("XML Client"))

node_client -->|"submits XML"| node_endpoint
node_endpoint -->|"validates XML"| node_service
node_endpoint -->|"transforms XML"| node_service
node_service -->|"loads profile schema"| node_schemas
node_service -.->|"uses profile XSLT"| node_stylesheets
node_endpoint -->|"returns JSON"| node_json
node_endpoint -.->|"raises handled errors"| node_error_handler

click node_endpoint "https://github.com/mannamanu/splkdemo/blob/main/springboot.py"
click node_error_handler "https://github.com/mannamanu/splkdemo/blob/main/springboot.py"
click node_service "https://github.com/mannamanu/splkdemo/blob/main/springboot.py"
click node_schemas "https://github.com/mannamanu/splkdemo/blob/main/springboot.py"
click node_stylesheets "https://github.com/mannamanu/splkdemo/blob/main/springboot.py"
click node_json "https://github.com/mannamanu/splkdemo/blob/main/springboot.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_endpoint,node_error_handler,node_client toneBlue
class node_service,node_schemas,node_stylesheets,node_json toneAmber
```

## Components

### API and Errors

- [Transform Endpoint](https://github.com/mannamanu/splkdemo/blob/main/springboot.py): `springboot.py`
- [Error Responses](https://github.com/mannamanu/splkdemo/blob/main/springboot.py): `springboot.py`

### Transformation

- [Transformation Service](https://github.com/mannamanu/splkdemo/blob/main/springboot.py): `springboot.py`
- [Profile XSDs](https://github.com/mannamanu/splkdemo/blob/main/springboot.py): `springboot.py`
- [XSLT Profiles](https://github.com/mannamanu/splkdemo/blob/main/springboot.py): `springboot.py`
- [JSON Result](https://github.com/mannamanu/splkdemo/blob/main/springboot.py): `springboot.py`

### Other components

- **XML Client**

## Connections

- XML Client → Transform Endpoint: submits XML (evidence: `springboot.py`)
- Transform Endpoint → Transformation Service: validates XML (evidence: `springboot.py`)
- Transform Endpoint → Transformation Service: transforms XML (evidence: `springboot.py`)
- Transformation Service → Profile XSDs: loads profile schema (evidence: `springboot.py`)
- Transformation Service → XSLT Profiles: uses profile XSLT (evidence: `springboot.py`)
- Transform Endpoint → JSON Result: returns JSON (evidence: `springboot.py`)
- Transform Endpoint → Error Responses: raises handled errors (evidence: `springboot.py`)
