ION DocsV3
  • Architecture
    • ION Architecture V2
      • ION V2 — Architecture Overview
      • V2 context
        • V2 capacity model
        • V2 constraints
        • V2 integration boundaries
        • V2 requirements
        • V2 solution strategy
      • V2 Structural Design
        • ION V2 Landscape
        • ION V2 Platform Views
          • ION V2 Delivery and Runway
          • ION V2 Incident-Processing Pipelines
          • ION V2 Platform Networking
          • ION V2 Platform Observability
          • ION V2 Platform Security
        • ION V2 System Context
        • ION V2 Systems
          • Alya System Topology
          • Cogs System Topology
          • Ion IQ System Topology
          • Kingsman System Topology
          • Pigeon System Topology
          • Veritas System Topology
          • Watchtower System Topology
      • V2 evolution and platform lineage
        • Tiberium Origins
          • Tiberium Architecture Overview
          • Tiberium Components Architecture Overview
        • Voyager and the V2 Merge
          • Voyager Architecture Overview
          • Voyager Identity Architecture Overview
          • Voyager Services Architecture Overview
      • V2 Platform Architecture
        • Alya Workbench
          • Mission Brief: Alya (Workbench for Cyber Defenders)
        • Asset Discovery
        • Automation
        • Customer Communications
          • Notification and Escalation Design
        • Reporting and Dashboards
        • Vulnerability Mitigations
      • V2 Well-Architected
        • V2 Reliability
          • Availability Architecture
        • V2 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V2 Security Architecture
          • Teams Notification Security
          • Customer Data and PII
          • V2 Identity
            • Applications and Authorization
            • V2 Identity Architecture
            • Microsoft Entra ID
            • V2 Identity Standard
            • V2 Identity Implementation
              • Application Registration
              • Application Roles
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Managed Identity
            • V2 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Portal Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Customer Environment Access Architecture
            • Customer Environment Access Guidelines
            • Customer Environment Access How-to
    • ION Architecture V3
      • ION V3 Architecture Overview
      • V3 context
        • V3 capacity model
        • V3 constraints
        • V3 integration boundaries
        • V3 requirements
        • V3 solution strategy
      • V3 Structural Design
        • Data and events
          • Archival and retention
          • Event model
          • Event sourcing
          • Event store
          • Micro-frontend interaction
          • Recovery and disaster recovery
          • Replay and reconstruction
          • Reporting and customer analytics
          • Event-sourcing requirements
          • Snapshots
          • UI interaction
        • ION v3 domains
          • Assets domain
            • Assets domain flows
            • Assets domain implementation
            • Assets domain model
          • Customer Collaboration domain
            • Customer Collaboration domain flows
            • Customer Collaboration domain implementation
            • Customer Collaboration domain model
          • Incident domain
            • Incident domain flows
            • Incident domain implementation
            • Incident domain model
          • Investigation domain
            • Investigation domain flows
            • Investigation domain implementation
            • Investigation domain model
          • Remediation domain
            • Remediation domain implementation
            • Remediation domain model
          • Ticket domain
            • Ticket domain flows
            • Ticket domain implementation
            • Ticket domain model
        • ION V3 Landscape
        • ION V3 Platform Views
          • Internal API
            • Internal API architecture
            • Internal API consumer guide
            • Internal API identity and access
            • Internal API implementation
          • Micro-Frontends
            • Micro-Frontends architecture
            • Micro-Frontends capability service (Signet)
            • Micro-Frontends composition
            • Micro-Frontends identity and access
            • Micro-Frontends implementation
            • Micro-Frontends real-time (SignalR)
            • Micro-Frontends routing and ingress
            • Shells and MFEs
          • SOAR Integration
            • SOAR Integration architecture
            • SOAR Integration customer onboarding
            • SOAR Integration Identity and Access Design
            • SOAR Integration implementation
            • SOAR Integration operations
        • ION V3 System Context
        • ION V3 systems
          • Alya
          • Cogs
          • ION IQ
          • Kingsman
          • Pigeon
          • Veritas
          • Watchtower
      • V2 to V3 evolution
        • V2 to V3 architecture delta
        • V2 to V3 decision changes
        • V2 to V3 migration guidance
        • V2 to V3 service impact
      • Well-Architected
        • Cost Optimization
          • Cost Governance
            • Cost Governance Architecture
            • Cost Governance Guidelines
            • Cost Governance Implementation
          • SKU Strategy
            • SKU Strategy Architecture
            • SKU Strategy Guidelines
            • SKU Strategy Implementation
        • Operational excellence
          • Audit Logs
            • Audit Logs Architecture
            • Audit Logs Guidelines
            • Audit Logs Implementation
          • CI/CD Runway
            • CI/CD Runway Architecture
            • CI/CD Runway Guidelines
            • CI/CD Runway Implementation
          • Feature Flags
            • Feature Flags Architecture
            • Feature Flags Guidelines
            • Feature Flags Implementation
          • Incident management
            • Incident management architecture
            • Incident management guidelines
            • Incident management implementation
          • Azure Landing Zone
            • Azure Landing Zone Architecture
            • Azure Landing Zone Guidelines
            • Azure Landing Zone Implementation
          • Notifications
            • Notifications Architecture
            • Notifications Guidelines
            • Notifications Implementation
          • Observability
            • Observability Architecture
            • Observability Guidelines
            • Observability Implementation
        • Performance efficiency
          • Capacity, sizing, and scaling
            • Capacity, sizing, and scaling architecture
            • Capacity, sizing, and scaling guidelines
            • Implement capacity, sizing, and scaling
          • UI responsiveness
            • UI responsiveness architecture
            • UI responsiveness guidelines
            • Implement UI responsiveness
        • V3 reliability
          • Application resilience patterns
          • Critical flows
          • Customer reliability assurance
            • ION Platform reliability and service continuity
            • Customer reliability slides
          • Disaster recovery
            • Disaster recovery architecture
            • Disaster recovery guidelines
            • Disaster recovery implementation
              • DR implementation: API Management
              • DR implementation: App Configuration
              • DR implementation: Application Gateway
              • DR implementation: Azure SQL Database
              • DR implementation: Container Apps
              • DR implementation: Container Registry
              • DR implementation: Cosmos DB
              • DR implementation: Event Hubs
              • DR implementation: Azure Front Door
              • DR implementation: Function Apps
              • DR implementation: Key Vault
              • DR implementation: Log Analytics and Application Insights
              • DR implementation: MySQL Flexible Server (Temporal)
              • DR implementation: PostgreSQL Flexible Server
              • DR implementation: Azure Managed Redis
              • DR implementation: Service Bus
              • DR implementation: SignalR
              • DR implementation: Storage accounts
            • Operational-data replication
            • Disaster recovery operations
          • Edge and routing
            • Azure Application Gateway
              • Azure Application Gateway architecture
              • Azure Application Gateway guidelines
              • Azure Application Gateway implementation
              • Azure Application Gateway resiliency
              • Azure Application Gateway security
            • Azure Front Door
              • Azure Front Door architecture
              • Azure Front Door guidelines
              • Azure Front Door implementation
              • Azure Front Door resiliency
              • Azure Front Door security
          • Event-store disaster recovery (moved)
          • Failure mode analysis
          • Graceful degradation
            • Graceful degradation architecture
            • Graceful degradation guidelines
            • Graceful degradation implementation
          • V3 reliability maturity model
            • V3 reliability maturity assessment
            • Maturity level 2: self-preservation
            • Maturity level 3: recovery readiness
            • Maturity level 4: maintain stability
            • Maturity level 5: stay resilient
          • Multi-region replication
            • Multi-region replication architecture
            • Multi-region replication guidelines
            • Multi-region replication implementation assessment
          • Reliability testing
          • Scaling and headroom
          • Targets and health model
          • Trade-offs and accepted risks
        • V3 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • API Contracts and Asynchronous Operations
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V3 Security Architecture
          • Data protection
            • Data protection architecture
            • Data protection guidelines
            • Data protection implementation guidelines
              • API Management
              • Application Gateway
              • Azure SQL Database
              • Azure Container Apps
              • Azure Cosmos DB
              • Azure Front Door
              • Azure Function Apps
              • Azure Database for MySQL
              • Azure Database for PostgreSQL
              • Data protection procedures
          • V3 Security Guidelines
          • V3 Identity
            • Applications and Authorization in ION V3
            • V3 Identity Architecture
            • Capabilities
            • Microsoft Entra ID for ION V3
            • V3 Identity Standard
            • V3 Identity Implementation
              • App Service Authentication
              • Application Registration
              • Application Roles
              • Customer Azure RBAC
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Mailbox-Scoped Access
              • Managed Identity
              • Workload Identity Federation
            • V3 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Azure RBAC Identity Workflow
              • Customer Portal Identity Workflow
              • Mailbox Access Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Shell and MFE Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Azure Lighthouse
              • Azure Lighthouse implementation
            • GDAP and Tenant Governance
              • Access Packages (legacy)
              • GDAP human access implementation
            • Customer environment access guidelines
            • Multi-tenant Entra apps
              • Multi-tenant Entra apps implementation
            • Teams B2B Direct Connect
              • Teams B2B Direct Connect implementation
          • Network Security
            • Network Security Architecture
            • Network Security Guidelines
            • Network Security Implementation
              • Egress and Static IPs
              • Resource Access Restrictions
          • V3 Security Patterns
    • ION Architecture V4
      • How V4 evolves from V3
  • Principles
  • Patterns
    • Application Permissions Only
    • Async REST
    • Audit Logs (Pattern)
    • Auth / AuthZ
    • Dead Letter Queue (DLQ)
    • Dual Writes (and how to avoid them)
    • ECST — Event-Carried State Transfer
    • Event Hubs Throttling
    • Feature Flags (Pattern)
    • Idempotent Write
    • MFE UI Interaction
    • Notifications (Pattern)
    • Private Data Store Access
    • Schema Evolution
    • Service Bus Topic Throttling
    • UI Interaction with an Event-Sourced Backend
  • Standards
    • API Standard
    • API Standards
    • Coding Standard
    • Coding Standards
    • Documentation Standard
    • Documentation Standards
    • Microservice Standard
    • Microservice Checklist
    • Operational Readiness Standard
    • ORR — Operational Readiness Review Checklist
  • Decisions
    • ADR-0001
    • ADR-0002
    • ADR-0003
    • ADR-0004
    • ADR-0005
    • ADR-0006
    • ADR-0007
    • ADR-0008
    • ADR-0009
    • ADR-0010
    • ADR-0011
    • ADR-0012
    • ADR-0013
    • ADR-0014
    • ADR-0015
    • ADR-0016
    • ADR-0017
    • ADR-0018
    • ADR-0019
    • ADR-0020
    • ADR-0021
    • ADR-0022
    • ADR-0023
    • ADR-0024
    • ADR-0025
    • ADR-0026
    • ADR-0027
    • ADR-0028
    • ADR-0029
    • ADR-0030
    • ADR-0031
    • ADR-0032
    • ADR-0033
    • ADR-0034
  • Services
  • Governance
    • Assumptions
    • Discrepancies
    • V3 reference coverage and conflict matrix
OntinueION Docs
  1. Standards
  2. API Standard
  3. Editions
  4. API Standards

API Standards

from references
standardsv2v3v4from-references

API Standards

Source references: Architecture- API Guidelines.md; Architecture- API.md; Architecture- Internal API.md; API- Azure API Management (APIM).md.


Scope

Every service in ION exposes at most three interfaces — the Trilateral API (§10 in principles):

  1. Publish — events emitted on the shared Service Bus namespace.
  2. Subscribe — events consumed from other services’ topics.
  3. REST (HTTP/JSON) — synchronous commands and reads.

This document is the platform-wide contract for all three. Individual services extend it in their own service page but MUST NOT contradict it.


1. REST (HTTP/JSON) standards

1.1 Style

  • MUST use REST + JSON:API (ADR-0009). No GraphQL, no bespoke JSON shapes.
  • MUST publish an OpenAPI 3.x spec, versioned in the service repo, linked from the service page.
  • MUST front public APIs through the shared APIM in the spoke (ADR-0017).
  • MUST NOT call another ION service synchronously to fulfil a domain operation (§5). REST is for the caller boundary (BFF or external client), not for cross-service orchestration.

1.2 Resource design

  • MUST model resources as nouns, plural: /incidents, /tickets, /service-requests.
  • MUST use kebab-case in path segments; camelCase in JSON fields.
  • MUST identify resources by opaque UUIDs — no sequential IDs, no customer-visible internal keys.
  • SHOULD keep hierarchy shallow (/incidents/{id}/comments); avoid nesting > 2 levels — flatten with query filters instead.

1.3 Verbs & semantics

  • MUST honour HTTP verbs: GET safe, HEAD safe, PUT idempotent, PATCH for partial (RFC 7396 or JSON:API patch), POST for non-idempotent commands (make them idempotent by key at the handler).
  • MUST honour status codes: 200, 201 Created (+ Location), 202 Accepted (async write — Async REST), 204, 400, 401, 403, 404, 409 (conflict), 412 (precondition), 422 (unprocessable), 429 (throttled), 500, 503, 504.
  • MUST return Location + correlation-ID header on 202 and define an ack channel (SignalR / event) for completion.

1.4 Request & response shape

  • MUST JSON:API envelope: data, included, meta, links, errors.
  • MUST error responses use JSON:API errors[] with status, code, title, detail, source, and a stable machine-readable code.
  • MUST RFC 3339 timestamps in UTC (2025-08-25T12:34:56.789Z).
  • MUST currency as ISO 4217 code + integer minor units; never floats.
  • MUST UTF-8 everywhere.

1.5 Filtering, sorting, sparse fields

  • MUST filter via filter[<field>][<op>]=<value> (JSON:API convention). Supported ops: eq, ne, in, nin, gt, ge, lt, le, contains, startsWith.
  • MUST sort via sort=field,-otherField (leading - for descending).
  • SHOULD support sparse fieldsets: fields[resource]=a,b,c.

1.6 Pagination — cursor-based

  • MUST paginate lists using cursor-based pagination (ADR-0009). No offset/limit for public APIs.
  • MUST request via page[size]=N&page[after]=<opaque cursor> (and page[before] for backwards). page[size] must have a hard max (typically 100) enforced by APIM.
  • MUST response includes links.next, links.prev, meta.hasMore. No total count for large collections — provide meta.approxCount if needed.
  • MUST NOT expose store-internal cursors (Cosmos continuation tokens, SB sequence numbers). Encode + sign platform-neutral cursors.

1.7 Versioning

  • MUST version via URL prefix: /v1/incidents, /v2/incidents.
  • MUST additive changes in a version; breaking changes require a new major version + deprecation window (min 6 months) + Sunset header per RFC 8594.
  • MUST publish deprecation notices in APIM developer portal + release notes.
  • SHOULD NOT use header-based versioning — URL is auditable in APIM + gateway logs.

1.8 Idempotency

  • MUST accept Idempotency-Key header on every unsafe write (POST, non-idempotent PATCH) and treat replays as no-ops (Idempotent Write).
  • MUST persist idempotency records with TTL ≥ client retry window.

1.9 Concurrency

  • MUST support optimistic concurrency via ETag + If-Match for updates on mutable entities. Conflict → 412 Precondition Failed.

1.10 Rate limiting & quotas

  • MUST rate limits enforced in APIM per-oid AND per-customer, documented in the endpoint table (ORR §G).
  • MUST 429 Too Many Requests with Retry-After header on throttle.
  • SHOULD return X-RateLimit-Remaining + X-RateLimit-Reset.

1.11 Auth

  • MUST all public APIs require Entra ID JWT validated at APIM + capability-header validation (Auth / AuthZ, ADR-0012).
  • MUST service-to-service via Managed Identity (ADR-0013). No client secrets in downstream calls.
  • MUST authZ enforced at both UI and API layer via capability scopes (<DomainEntity>.<Read|ReadWrite>).
  • MUST NOT propagate user JWT past the BFF; downstream uses MI + capability token.

1.12 Observability

  • MUST propagate traceparent (W3C Trace Context) + correlation ID end-to-end.
  • MUST every request logged with correlation ID + customer / tenant tag (never PII).
  • MUST APIs emit 4 golden signals per endpoint (Observability).

1.13 Health

  • MUST /healthz (liveness) + /readyz (readiness) endpoints — unauthenticated on internal path, MI-protected if publicly reachable.

2. Events — Publish / Subscribe

2.1 Envelope & schema

  • MUST every event conforms to CloudEvents v1.0 + registered AsyncAPI channel spec (ADR-0004).
  • MUST type follows the dotted convention: <platform>.<type>.<aggregateroot>.<name>.<version>, e.g. ion.event.securityincident.statusupdated.v1.
  • MUST source is the producing service URN (urn:io:ontinue:ion:<service>); subject is the aggregate ID; tenantId extension carries the customer tenant; id is unique per emission.
  • MUST datacontenttype: application/json; payload validated against AsyncAPI schema.
  • MUST custom extensions namespaced: iontenant, ioncustomer, ioncorrelationid.

2.2 ECST — payload content

  • MUST integration events carry the state consumers need (ECST). Consumers do not call back to the producer for state.
  • MUST NOT publish PII beyond what is classified for the topic.
  • SHOULD keep payload ≤ 256 KB for Service Bus. Blob-reference when larger.

2.3 Delivery & handling

  • MUST publish onto the shared Service Bus namespace (ADR-0008).
  • MUST consumers are idempotent and tolerate out-of-order + at-least-once delivery.
  • MUST every subscription has a DLQ with alerts + replay tooling (DLQ).
  • MUST producers + consumers respect throttling budgets (Service Bus Topic Throttling).

2.4 Versioning

  • MUST additive-only within a major; new required fields → new major type (Schema Evolution).
  • MUST publish deprecation timeline for retired schema versions.

2.5 Ordering & partitioning

  • MUST partition by aggregate ID (session ID on SB) to preserve per-aggregate ordering.
  • MUST NOT rely on cross-aggregate ordering.

3. Internal APIs (service-to-service)

  • MUST NOT exist for domain operations — use events (§5, §6).
  • MAY exist for query-only reads where the caller genuinely cannot use a projection (rare — document why).
  • MUST internal reads go over private network + MI auth; never exposed via APIM.

4. Deprecation & sunsetting

  • MUST deprecated endpoints emit Sunset header + APIM analytics counter.
  • MUST removal only after ≥ 6-month deprecation period + zero traffic across all customers for ≥ 30 days.
  • MUST consumer-side breakage announced through Pigeon / release-notes channel.

5. Testing

  • MUST contract tests for every produced event + every consumed event.
  • MUST OpenAPI spec used as the source of truth for request/response tests (schemathesis or equivalent).
  • MUST load-test at target capacity before ORR sign-off.

Related

  • Microservice Checklist
  • ORR Checklist
  • Async REST · ECST · Idempotent Write · Schema Evolution · Auth / AuthZ
  • ADR-0004 · ADR-0007 · ADR-0008 · ADR-0009 · ADR-0017

On this page

  • Scope
  • 1. REST (HTTP/JSON) standards
  • 1.1 Style
  • 1.2 Resource design
  • 1.3 Verbs & semantics
  • 1.4 Request & response shape
  • 1.5 Filtering, sorting, sparse fields
  • 1.6 Pagination — cursor-based
  • 1.7 Versioning
  • 1.8 Idempotency
  • 1.9 Concurrency
  • 1.10 Rate limiting & quotas
  • 1.11 Auth
  • 1.12 Observability
  • 1.13 Health
  • 2. Events — Publish / Subscribe
  • 2.1 Envelope & schema
  • 2.2 ECST — payload content
  • 2.3 Delivery & handling
  • 2.4 Versioning
  • 2.5 Ordering & partitioning
  • 3. Internal APIs (service-to-service)
  • 4. Deprecation & sunsetting
  • 5. Testing
  • Related
PreviousAPI Standard
NextCoding Standard
Edit on GitHubSecurity