-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Jeff Cumpsty edited this page Mar 16, 2026
·
3 revisions
Welcome to the Open Referral UK (ORUK) API documentation wiki!
This API provides comprehensive validation services for Open Referral UK implementations, helping organizations build standards-compliant service directory APIs.
-
Development Setup - Complete guide to setting up your local development environment
- Prerequisites and installation
- MongoDB configuration options
- Running the application
- Troubleshooting common issues
-
Current State Of Play - Source-of-truth summary of implemented routes and runtime behavior
- Current endpoint surface
- Health and warmup behavior
- Recently documented implemented features
-
Technical Architecture - Comprehensive system architecture documentation
- Technology stack
- System components
- Data flow diagrams
- API endpoints reference
- Security considerations
- Deployment architecture
-
Validation Flow - Detailed explanation of the validation process
- OpenAPI specification validation
- Endpoint testing workflow
- Schema validation process
- Quality metrics analysis
- π GitHub Repository
- π Report Issues
- π Open Referral UK Website
- π¬ Community Forum
# Clone the repository
git clone https://github.com/OpenReferralUK/oruk-validator.git
cd OpenReferralApi
# Run with Docker
docker-compose -f docker-compose.dev.yml up
# OR run with .NET CLI
dotnet restore
dotnet run --project OpenReferralApi/OpenReferralApi.csproj
# Access Swagger UI at http://localhost:6969The Open Referral UK API provides:
- β OpenAPI Specification Validation - Validates OpenAPI 2.0/3.x specifications for compliance
- β Automated Endpoint Testing - Tests live API endpoints against HSDS-UK standards
- β Schema Validation - Validates responses against HSDS-UK JSON schemas (v1.0, v3.0, v3.1)
- β Quality Analysis - Assesses API documentation quality and best practices
- β Performance Metrics - Measures endpoint response times
- β Mock Data Service - Provides test data for development
- Framework: .NET 10.0 with ASP.NET Core
- Language: C# 13+
- Database: MongoDB (optional)
- Validation: JSON Schema (Newtonsoft.Json.Schema, JsonSchema.Net)
- Observability: OpenTelemetry with OTLP export
- Containerization: Docker with Heroku deployment
- Multi-version HSDS-UK schema support (1.0, 3.0, 3.1)
- Intelligent endpoint dependency ordering
- Real ID extraction and substitution
- Pagination testing
- Optional vs. required endpoint differentiation
- Interactive Swagger UI documentation
- Comprehensive health check endpoints
- Rate limiting protection
- CORS configuration
- Hot reload support in development
- Correlation ID support via
X-Correlation-ID
- Validation routes:
POST /openreferraluk/validate,POST /openreferral/validate, and legacy aliasPOST /api/openapi/validate - Feed validation operations:
GET /api/feedvalidation/feeds,POST /api/feedvalidation/validate-all,POST /api/feedvalidation/validate/{feedId} - Liveness endpoint
GET /health-check/liveincludes schema warmup status data underschemaWarmup - Feed validation background service runs only when MongoDB is configured; otherwise a null feed service is used
- Global environment variable prefix for overrides is
ORUK_API_
- Docker containerization
- Heroku deployment configuration
- OpenTelemetry observability
- Kubernetes-compatible health checks
- Configurable security settings
This project is part of the broader Open Referral ecosystem:
- For API-specific issues: Use the GitHub Issues page
- For HSDS/ORUK standard discussions: Visit the Community Forum
- Global Open Referral: openreferral.org
- HSDS-UK Schema & Standards: Creative Commons Attribution-ShareAlike 4.0 (CC BY-SA 4.0)
- API Code: BSD 3-Clause License
See the repository LICENSE and LICENSE-BSD files for details.
- Review the Development Setup guide for local environment configuration
- Check the Technical Architecture for system design details
- Explore the Validation Flow for understanding the validation process
- Visit the Community Forum for broader discussions
Last Updated: March 2026
Maintained By: iStandUK & Open Referral UK Community