Skip to content

OpenAPI Strategy

Purpose

OpenAPI will become the formal contract source for approved REST APIs. This strategy defines how Algosure will introduce OpenAPI without prematurely creating endpoint specifications.

Position

Topic Standard
Contract source OpenAPI is the future source of truth for public application and integration APIs.
Timing OpenAPI files are created only after resource and endpoint design is approved.
Ownership Each OpenAPI contract is owned by the Domain module that owns the API boundary.
Review Contracts require architecture, security, tenant, entitlement, and consumer review.
Testing OpenAPI contracts should feed contract tests and compatibility checks.

Future Contract Lifecycle

flowchart LR
    Architecture[API Architecture]
    Design[Endpoint Design]
    OpenAPI[OpenAPI Contract]
    Review[Security and Architecture Review]
    Tests[Contract Tests]
    Release[API Release]

    Architecture --> Design
    Design --> OpenAPI
    OpenAPI --> Review
    Review --> Tests
    Tests --> Release

OpenAPI Requirements

  • Each contract identifies API category, version, owner, and security model.
  • Security schemes must align with Keycloak JWTs, service accounts, API keys, and integration credentials as applicable.
  • Tenant and organization headers or claims must be documented.
  • Standard response envelopes and error responses must be reusable components.
  • Idempotency, pagination, filtering, sorting, rate limit, and correlation headers must use shared components.
  • Examples must use synthetic data only.

Non-Goals

This document does not create OpenAPI files, folder conventions, schema names, path names, code generation setup, or publishing automation.