# resilienx/fraihmwork-api architecture

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

- Interactive diagram: https://gitdiagram.com/resilienx/fraihmwork-api
- Repository: https://github.com/resilienx/fraihmwork-api

## Overview

#### Purpose and Contract Format
This repository is an API-contract bundle for FRAIHMWORK health, integrity, rules, risk, maintenance, alerting, constraint, and parameter-data integrations. It contains OpenAPI 3.0 YAML specifications rather than an executable application. Payloads are JSON; identifiers are UUIDs; timestamps use ISO 8601.

#### Consumer Entry Points
Each top-level `*Api.yaml` file is independently importable into Swagger Editor for endpoint exploration and client/server generation. The primary integration guidance is in `Documentation/Basic API Integration EXTERNAL.docx`; an importable request collection is provided at `Integration/FRAIHMWORK Integrator Starter Kit Collection.json`.

#### Authentication and API Boundary
OAuth authentication and the supported Health and Integrity Monitoring request workflows are documented outside the OpenAPI contracts, creating an explicit security/integration boundary before API calls. Consumers should begin with:
- `Documentation/Basic API Integration EXTERNAL.docx`
- `FraihmworkHealthAndIntegrityApi.yaml`
- `Integration/readme.txt`

#### Health, Integrity, and Rules Domain
The central monitoring domain is represented by the Health and Integrity API, with a separate Rules Engine contract for evaluation or policy-driven workflows:
- `FraihmworkHealthAndIntegrityApi.yaml`
- `FraihmworkRulesEngineApi.yaml`
- `FraihmworkHealthAndIntegrityApiChangelist.txt`

#### Operational Response Domain
Alerting and maintenance APIs define the operational response surface around detected health/integrity conditions. These contracts likely form the downstream flow from monitoring/rule outcomes into notifications and maintenance activity:
- `AlertingApi.yaml`
- `MaintenanceApi.yaml`
- `AlertingApiChangelist.txt`

#### Assessment, Constraints, and Input Data
Risk assessment, constraints, and parameter data are separated into dedicated API contracts. This establishes boundaries between source/parameter ingestion, applicable operating constraints, and risk-oriented evaluation:
- `ParameterDataApi.yaml`
- `ConstraintApi.yaml`
- `RiskAssessmentApi.yaml`

#### Versioning and Legacy Contracts
Per-API changelists track contract evolution. Superseded endpoints are isolated under `Deprecated/`, including former registration, active-component, active-fault, and earlier health/integrity definitions. New integrations should target top-level API specs rather than:
- `Deprecated/RegistrationApi.yaml`
- `Deprecated/ActiveComponentApi.yaml`
- `Deprecated/FraihmworkHealthAndIntegrityMonitoringApi_v0.yaml`

Main entry points: [`FraihmworkHealthAndIntegrityApi.yaml`](https://github.com/resilienx/fraihmwork-api/blob/master/FraihmworkHealthAndIntegrityApi.yaml) (Health & Integrity API), [`AlertingApi.yaml`](https://github.com/resilienx/fraihmwork-api/blob/master/AlertingApi.yaml) (Alerting API), [`Documentation/Basic API Integration EXTERNAL.docx`](https://github.com/resilienx/fraihmwork-api/blob/master/Documentation/Basic%20API%20Integration%20EXTERNAL.docx) (External integration guide), [`Integration/FRAIHMWORK Integrator Starter Kit Collection.json`](https://github.com/resilienx/fraihmwork-api/blob/master/Integration/FRAIHMWORK%20Integrator%20Starter%20Kit%20Collection.json) (Integrator starter collection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_consumer["Consumer onboarding"]
  node_integration_guide["External integration guide<br/>documentation"]
  node_starter_collection["Integrator starter collection<br/>request collection"]
  node_integration_readme["Integration readme<br/>documentation<br/>[readme.txt]"]
end

subgraph group_monitoring["Monitoring and response"]
  node_health_integrity["Health &amp; Integrity API<br/>OpenAPI contract"]
  node_rules_engine["Rules Engine API<br/>OpenAPI contract"]
  node_alerting["Alerting API<br/>OpenAPI contract<br/>[AlertingApi.yaml]"]
  node_maintenance["Maintenance API<br/>OpenAPI contract"]
  node_health_changelist["Health API changelist<br/>contract history"]
  node_alerting_changelist["Alerting API changelist<br/>contract history"]
end

subgraph group_assessment["Assessment inputs"]
  node_parameter_data["Parameter Data API<br/>OpenAPI contract"]
  node_constraints["Constraint API<br/>OpenAPI contract<br/>[ConstraintApi.yaml]"]
  node_risk_assessment["Risk Assessment API<br/>OpenAPI contract"]
end

subgraph group_legacy["Legacy contracts"]
  node_legacy_registration["Legacy Registration API<br/>deprecated OpenAPI"]
  node_legacy_active_component["Legacy Active Component API<br/>deprecated OpenAPI"]
  node_legacy_monitoring["Legacy Monitoring API v0<br/>deprecated OpenAPI"]
end

node_integration_guide -->|"onboards consumers to"| node_health_integrity
node_integration_readme -->|"starts integration with"| node_health_integrity
node_starter_collection -->|"provides requests for"| node_health_integrity
node_integration_guide -.->|"supports setup with"| node_starter_collection
node_parameter_data -->|"supplies assessment inputs"| node_risk_assessment
node_constraints -->|"defines applicable limits"| node_risk_assessment
node_health_integrity -->|"supports evaluation workflows"| node_rules_engine
node_rules_engine -.->|"can drive notifications"| node_alerting
node_health_integrity -.->|"conditions lead to"| node_alerting
node_health_integrity -.->|"conditions lead to"| node_maintenance
node_alerting -.->|"supports operational response"| node_maintenance
node_health_changelist -.->|"tracks evolution of"| node_health_integrity
node_alerting_changelist -.->|"tracks evolution of"| node_alerting
node_legacy_monitoring -.->|"superseded by"| node_health_integrity
node_legacy_registration -.->|"excluded from new integrations"| node_health_integrity
node_legacy_active_component -.->|"excluded from new integrations"| node_health_integrity

click node_integration_guide "https://github.com/resilienx/fraihmwork-api/blob/master/Documentation/Basic%20API%20Integration%20EXTERNAL.docx"
click node_starter_collection "https://github.com/resilienx/fraihmwork-api/blob/master/Integration/FRAIHMWORK%20Integrator%20Starter%20Kit%20Collection.json"
click node_integration_readme "https://github.com/resilienx/fraihmwork-api/blob/master/Integration/readme.txt"
click node_health_integrity "https://github.com/resilienx/fraihmwork-api/blob/master/FraihmworkHealthAndIntegrityApi.yaml"
click node_rules_engine "https://github.com/resilienx/fraihmwork-api/blob/master/FraihmworkRulesEngineApi.yaml"
click node_alerting "https://github.com/resilienx/fraihmwork-api/blob/master/AlertingApi.yaml"
click node_maintenance "https://github.com/resilienx/fraihmwork-api/blob/master/MaintenanceApi.yaml"
click node_health_changelist "https://github.com/resilienx/fraihmwork-api/blob/master/FraihmworkHealthAndIntegrityApiChangelist.txt"
click node_alerting_changelist "https://github.com/resilienx/fraihmwork-api/blob/master/AlertingApiChangelist.txt"
click node_parameter_data "https://github.com/resilienx/fraihmwork-api/blob/master/ParameterDataApi.yaml"
click node_constraints "https://github.com/resilienx/fraihmwork-api/blob/master/ConstraintApi.yaml"
click node_risk_assessment "https://github.com/resilienx/fraihmwork-api/blob/master/RiskAssessmentApi.yaml"
click node_legacy_registration "https://github.com/resilienx/fraihmwork-api/blob/master/Deprecated/RegistrationApi.yaml"
click node_legacy_active_component "https://github.com/resilienx/fraihmwork-api/blob/master/Deprecated/ActiveComponentApi.yaml"
click node_legacy_monitoring "https://github.com/resilienx/fraihmwork-api/blob/master/Deprecated/FraihmworkHealthAndIntegrityMonitoringApi_v0.yaml"

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_integration_guide,node_starter_collection,node_integration_readme toneBlue
class node_health_integrity,node_rules_engine,node_alerting,node_maintenance,node_health_changelist,node_alerting_changelist toneAmber
class node_parameter_data,node_constraints,node_risk_assessment toneMint
class node_legacy_registration,node_legacy_active_component,node_legacy_monitoring toneRose
```

## Components

### Consumer onboarding

- [External integration guide](https://github.com/resilienx/fraihmwork-api/blob/master/Documentation/Basic%20API%20Integration%20EXTERNAL.docx): documentation · Documents OAuth and supported monitoring workflows. · `Documentation/Basic API Integration EXTERNAL.docx`
- [Integrator starter collection](https://github.com/resilienx/fraihmwork-api/blob/master/Integration/FRAIHMWORK%20Integrator%20Starter%20Kit%20Collection.json): request collection · Importable requests for integration setup. · `Integration/FRAIHMWORK Integrator Starter Kit Collection.json`
- [Integration readme](https://github.com/resilienx/fraihmwork-api/blob/master/Integration/readme.txt): documentation · `Integration/readme.txt`

### Monitoring and response

- [Health & Integrity API](https://github.com/resilienx/fraihmwork-api/blob/master/FraihmworkHealthAndIntegrityApi.yaml): OpenAPI contract · Primary monitoring integration contract. · `FraihmworkHealthAndIntegrityApi.yaml`
- [Rules Engine API](https://github.com/resilienx/fraihmwork-api/blob/master/FraihmworkRulesEngineApi.yaml): OpenAPI contract · Evaluation and policy-driven workflows. · `FraihmworkRulesEngineApi.yaml`
- [Alerting API](https://github.com/resilienx/fraihmwork-api/blob/master/AlertingApi.yaml): OpenAPI contract · Notification response surface. · `AlertingApi.yaml`
- [Maintenance API](https://github.com/resilienx/fraihmwork-api/blob/master/MaintenanceApi.yaml): OpenAPI contract · Maintenance activity response surface. · `MaintenanceApi.yaml`
- [Health API changelist](https://github.com/resilienx/fraihmwork-api/blob/master/FraihmworkHealthAndIntegrityApiChangelist.txt): contract history · `FraihmworkHealthAndIntegrityApiChangelist.txt`
- [Alerting API changelist](https://github.com/resilienx/fraihmwork-api/blob/master/AlertingApiChangelist.txt): contract history · `AlertingApiChangelist.txt`

### Assessment inputs

- [Parameter Data API](https://github.com/resilienx/fraihmwork-api/blob/master/ParameterDataApi.yaml): OpenAPI contract · Parameter and source-data ingestion boundary. · `ParameterDataApi.yaml`
- [Constraint API](https://github.com/resilienx/fraihmwork-api/blob/master/ConstraintApi.yaml): OpenAPI contract · Applicable operating constraints. · `ConstraintApi.yaml`
- [Risk Assessment API](https://github.com/resilienx/fraihmwork-api/blob/master/RiskAssessmentApi.yaml): OpenAPI contract · Risk-oriented evaluation boundary. · `RiskAssessmentApi.yaml`

### Legacy contracts

Superseded APIs; do not use for new integrations.

- [Legacy Registration API](https://github.com/resilienx/fraihmwork-api/blob/master/Deprecated/RegistrationApi.yaml): deprecated OpenAPI · `Deprecated/RegistrationApi.yaml`
- [Legacy Active Component API](https://github.com/resilienx/fraihmwork-api/blob/master/Deprecated/ActiveComponentApi.yaml): deprecated OpenAPI · `Deprecated/ActiveComponentApi.yaml`
- [Legacy Monitoring API v0](https://github.com/resilienx/fraihmwork-api/blob/master/Deprecated/FraihmworkHealthAndIntegrityMonitoringApi_v0.yaml): deprecated OpenAPI · Earlier health and integrity definition. · `Deprecated/FraihmworkHealthAndIntegrityMonitoringApi_v0.yaml`

## Connections

- External integration guide → Health & Integrity API: onboards consumers to
- Integration readme → Health & Integrity API: starts integration with
- Integrator starter collection → Health & Integrity API: provides requests for
- External integration guide → Integrator starter collection: supports setup with
- Parameter Data API → Risk Assessment API: supplies assessment inputs
- Constraint API → Risk Assessment API: defines applicable limits
- Health & Integrity API → Rules Engine API: supports evaluation workflows
- Rules Engine API → Alerting API: can drive notifications
- Health & Integrity API → Alerting API: conditions lead to
- Health & Integrity API → Maintenance API: conditions lead to
- Alerting API → Maintenance API: supports operational response
- Health API changelist → Health & Integrity API: tracks evolution of
- Alerting API changelist → Alerting API: tracks evolution of
- Legacy Monitoring API v0 → Health & Integrity API: superseded by
- Legacy Registration API → Health & Integrity API: excluded from new integrations
- Legacy Active Component API → Health & Integrity API: excluded from new integrations
