Openframe Api Service Core
OpenFrame Documentation
Get the most out of OpenFrame · Book 30 minutes with Conrad, 25 years in IT. He'll show you what Mingo and Fae can take off your list.
OpenFrame Documentation
Openframe Api Service Core is the shared Java service layer that supplies the primary API capabilities used by the tenant's openframe-api application. Published as com.openframe.oss:openframe-api-service-core version 7.0.11, it provides Spring configuration, REST controllers, GraphQL data fetchers, DataLoaders, API DTOs, Relay support, package-catalog adapters, and tenant-aware integration seams.
The tenant repository assembles this library into the openframe-api service and publishes that service as com.openframe:openframe-api.
The module forms the API-facing boundary between OpenFrame clients and the platform's domain services. It supports:
flowchart LR
Client["Browser, API Client, or GraphQL Client"] --> Gateway["OpenFrame Gateway"]
Gateway --> ApiService["OpenFrame API Service"]
ApiService --> Rest["REST Controllers"]
ApiService --> Graphql["GraphQL Data Fetchers"]
Graphql --> Loaders["GraphQL DataLoaders"]
Rest --> Services["Tenant Scoped Domain Services"]
Graphql --> Services
Loaders --> Services
Services --> Data["MongoDB and Supporting Integrations"]
The gateway routes /api/** traffic to the OpenFrame API service. Within that application, Openframe Api Service Core provides the web and GraphQL adapters, while delegated domain services own business rules, persistence access, tenant isolation, and asynchronous delivery workflows.
| Area | Responsibility |
|---|---|
| Core Config | Registers API beans, security integration, authenticated-principal resolution, GraphQL scalars, and startup OAuth client reconciliation. |
| Api Controllers | Provides REST boundaries for agent bootstrap data, force operations, device and organization commands, account administration, invitations, knowledge-base images, and health checks. |
| Graphql Datafetchers | Exposes tenant operational data and mutations for devices, users, organizations, notifications, tags, packages, knowledge base content, assignments, and time entries. |
| Graphql Rmm Datafetchers | Provides RMM command, script, schedule, execution, software, and vulnerability GraphQL operations. |
| Graphql Dataloaders | Batches nested GraphQL lookups to avoid N-plus-one access patterns. |
| API DTOs | Defines API request and response contracts for audit logs, force actions, invitations, OAuth, OIDC user information, and organization sorting. |
| Relay And Type Resolving | Resolves Relay global IDs and concrete GraphQL types for assignment targets. |
| Package Manager Clients | Normalizes Homebrew, Chocolatey, and WinGet package discovery and detail retrieval. |
| Processors | Supplies conditional default lifecycle hooks for user, invitation, SSO, and agent-registration-secret events. |
| Tenant Domain Provider | Reads the trusted tenant-domain header injected by the gateway for the current request. |
sequenceDiagram
participant Client as "API Client"
participant Gateway as "OpenFrame Gateway"
participant Api as "OpenFrame API Service"
participant Boundary as "Controller or Data Fetcher"
participant Service as "Domain Service"
participant Store as "Tenant Data Store"
Client->>Gateway: Send authenticated request
Gateway->>Api: Forward API request
Api->>Boundary: Route REST or GraphQL operation
Boundary->>Boundary: Bind input and resolve principal
Boundary->>Service: Delegate tenant scoped work
Service->>Store: Read or update domain data
Store-->>Service: Return domain result
Service-->>Boundary: Return result
Boundary-->>Client: Return API response
GraphQL data fetchers use Relay ID decoding for typed identifiers, validate incoming inputs, and use DataLoaders for related entities. REST controllers similarly adapt HTTP requests to service calls and keep business behavior outside the controller layer.
Refer to the following component documentation for detailed behavior: