Openreferral UK
MENU
About ORUK
  1. Introducing Open Referral UK
  2. Government and community involvement
  3. Benefits of Open Referral UK
  4. International Open Referral data standard
Adopt the standard in a council
  1. Executive summary
  2. Business case
  3. Project initiation document (PID)
  4. Benefits calculator
Community
  1. Verified feed directory
  2. Join our community
  3. Forum (opens in new window)
Developer resources
  1. Technical overview to implementing Open Referral UK
  2. Check your compliance
  3. Verified feed availability
  4. Register your feed
  5. Reference: API
  6. Reference: Data model
  7. Reference: The specification
  8. Compliance criteria
  9. Changes in version 3.0
Case studies
  1. How adopting the standard helped save time and money
  2. Following digital principles to implement the standard
  3. Buckinghamshire Council - Moving from a legacy system to a more flexible Family Information Service
  4. Building a better Family Information Service with Buckinghamshire Council - A developer’s view on adopting the standard
  5. ...plus 8 more (show all)
  1. Home
  2. Developers

Compliance criteria for Open Referral UK

1. How to comply with Open Referral UK

There are two main compliance criteria:

  • Provide an open API feed that can be accessed by anyone
  • Comply with the API specification

Each of these is summarised below.

1.1 Provide an open API feed that can be accessed by anyone

Information on services should be freely available for public anonymous access via an Application Programming Interface (API) that returns data in a JavaScript Notation (JSON) format.

To make this API as widely used as possible across platforms, especially simple HTML/JavaScript apps, publishers should implement the following Cross-Origin Resource Sharing (CORS) header on all HTTP responses.

    Access-Control-Allow-Origin: *

Publishers may throttle their web servers to limit excess loads.

Private or confidential information should be excluded from open feeds but may be provided in extra fields via APIs with associated security e.g. with API keys or OAuth security.

1.2 Comply with the API specification

The API feed should provide endpoints (also known as “web methods”) that conform to the API specification.

There are nine endpoints all of which query (that is “GET”) data. We expect the endpoints to:

  • be named according to the specification
  • use the same query parameters many of which are optional
  • provide responses in the JSON format given by the specification

The Data model page provides a “Schema” for each entity (e.g. service). Within the schema, fields which must be populated are shown as “Required”. So for a service, just these fields must be populated:

  • id
  • organization_id - linking to the organisation * providing the service
  • name
  • status

Note that optional fields without a value should be omitted rather than included with null or empty values.

2. The Tool to check compliance (the Validator)

Three of the nine endpoints are most important. These are:

  • GET / - giving basic metadata about the API feed
  • GET /services - giving a paginated list of services
  • GET /services/{id} - giving full details of a single service

The tool to check compliance will consider a feed to “pass” if these three endpoints comply. It will simply “warn” if other endpoints don’t exist or comply. The “Sample reports” on that page show what complies. Take a look at the text at the bottom of the samples (e.g. for Pass) for more details.

3. Going beyond basic compliance

As data feeds mature and are made more useful they should be extended to:

  • increase the number of API endpoints supported
  • populate optional data entities and fields
  • instigate routine checks on data quality. The service entity has an “assured_date” field which we recommend should be populated with a date less than three months old for each service.

See the Technical overview to implementing Open Referral UK for more information.

On this page

  1. 1. How to comply with Open Referral UK
  2. 2. The Tool to check compliance (the Validator)
  3. 3. Going beyond basic compliance
Open Referral UK is supported by
Ministry of Housing,
Communities &
Local Government
Sitemap
  1. Accessibility statement
  2. Sustainability policy
  3. Privacy policy
  4. Terms and conditions
  5. Contact us
Copyright © 2024-5 Open Referral UK. This site is released under the Creative Commons Attribution-ShareAlike 4.0 International Public License.