API-First Design — UK Engineering Guide (2025)

🔗 OpenAPI 3.0💷 GBP⚖️ FCA COBS🏥 NHS FHIR🆓 Free Review
August 202511 min readJames Whitmore, CTO

Direct Answer

API-first means designing your API before writing application code — defining the OpenAPI 3.0 specification as the contract between frontend and backend teams. For UK regulated software, API-first is not optional: FCA COBS requires machine-readable API disclosure (OpenAPI satisfies this), NHS DTAC Domain 4 requires a FHIR Capability Statement (OpenAPI equivalent), and GDS Service Standard requires APIs to be designed for reuse. ClickMasters is API-first on all projects.

Design-First vs Code-First — UK Comparison

ApproachHow It WorksUK AdvantagesUK Disadvantages
Design-first (API-first)Write OpenAPI spec → generate server stubs → implement logicFCA COBS disclosure ready from Day 1, contract tests possible, parallel frontend/backendAdditional upfront time (1–2 days)
Code-firstWrite code → generate OpenAPI from annotationsFaster initial startOpenAPI quality varies — may not satisfy FCA/GDS requirements
ClickMasters approachDesign-first on all UK projectsFCA, NHS, GDS compliance built into API design, not retrofitted

OpenAPI 3.0 — UK Regulatory Value

RegulationOpenAPI ValueHow ClickMasters Implements
FCA COBS 4 (financial promotions)Machine-readable API disclosure — inspector-auditableOpenAPI spec version-controlled in Git, published at /api-docs
NHS DTAC Domain 4 (interoperability)FHIR Capability Statement = OpenAPI equivalentClickMasters publishes FHIR CapabilityStatement (/metadata) + OpenAPI for non-FHIR APIs
GDS Service StandardAPI documentation must enable reuse by other servicesOpenAPI spec published as part of GDS technical documentation
ICO API transparencyArticle 13/14 UK GDPR: data subjects informed what APIs exist that process their dataAPI inventory (from OpenAPI specs) fed into ROPA and privacy notice
PCI-DSS SAQ-AAPI boundary scope reduction — payment card data never in APIOpenAPI spec shows payment endpoints use Stripe Elements redirect (no card data in spec)

API Versioning — UK Best Practice

StrategyHow It WorksUK Compliance ImplicationsClickMasters Recommendation
URL versioning (/v1/, /v2/)New major version = new URL path✅ FCA: version in URL is auditable in access logs✅ Standard for all external UK APIs
Header versioningAPI-Version: 2 headerHarder to audit in URL logs — FCA prefers URLNot recommended for FCA-regulated APIs
No versioning (schema evolution)Only additive changes allowed everConstrains product evolution — avoid for APIsNot recommended for external APIs
Date-based (/2024-01-01/)Stripe-style date versioningClean audit trailFor high-volume public APIs only

Contract Testing for UK APIs

NHS FHIR R4: FHIR provider contract tests verify UK Core profile compliance on every CI/CD run — breaking FHIR changes caught before deployment.

FCA Open Banking: consumer-driven contract tests verify OBIE-standard API compliance — prevents breaking changes to payment APIs.

GOV.UK API: contract tests verify GOV.UK Notify integration, GOV.UK Pay integration, and Companies House API continue to behave as expected.

Multi-team development: contract tests allow frontend and backend teams to develop independently — the contract (OpenAPI spec) is the integration agreement.

Contract testing verifies that API consumers (frontend, mobile apps, third-party integrations) and API providers (backend services) agree on the API contract. Particularly important for:

Frequently Asked Questions

Common questions about api-first design — uk engineering guide (2025).

FCA does not require an OpenAPI specification by name. However: FCA COBS 4 (financial communications must be fair, clear and not misleading), FCA PS21/3 (Important Business Services must have documented technical architecture), and Open Banking OBIE standard (OpenAPI specifications mandatory for Open Banking APIs) collectively mean that any UK FinTech with external APIs should have OpenAPI specifications. FCA supervision: when the FCA requests technical documentation, an OpenAPI spec is the clearest technical disclosure.

ClickMasters API-first Technical Discovery: 2 weeks, £3,500–£8,000 fixed price. Deliverables: OpenAPI 3.0 specification (all endpoints, request/response schemas, authentication, error codes), data flow diagram (showing data subjects, processors, UK GDPR legal bases), API architecture decision records (ADRs), and a fixed-price proposal for the API build. The OpenAPI spec is yours regardless of whether you proceed with ClickMasters.

About the Author

James Whitmore, CTO UK API architecture specialist ClickMasters is API-first on all projects. Every API ships with an OpenAPI 3.0 specification as standard.

Free API Architecture Review ClickMasters will...

Free API Architecture Review ClickMasters will review your API design and confirm OpenAPI 3.0 best practice for UK regulatory compliance. → clickmasterssoftwaredevelopmentcompany.co.uk/contact/

Book a Free Consultation