Skip to content

Commit 6110da4

Browse files
committed
cmsnav-747 Propose wording changes, correct omission from Makefile and document changes.
1 parent e9397b6 commit 6110da4

3 files changed

Lines changed: 36 additions & 5 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ publish: clean
3232
mkdir -p build
3333
npm run publish 2> /dev/null
3434

35+
#Serve the API description locally
36+
serve:
37+
npm run serve
38+
3539
#Runs build proxy script
3640
build-proxy:
3741
scripts/build_proxy.sh

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,31 @@ The contents of this repository are protected by Crown Copyright (C).
2121

2222
## Development
2323

24-
### Requirements
24+
You can set up your development manually on your development machine, or :bulb: use the supplied devcontainer specification to set up
25+
the required environment automatically.
26+
27+
### :bulb: Developing in a devcontainer
28+
29+
If you are unfamiliar with the use of devcontainers, these resources may be helpful:
30+
- VSCode: https://code.visualstudio.com/docs/devcontainers/tutorial
31+
- JetBrains/pycharm: https://www.jetbrains.com/help/idea/prerequisites-for-dev-containers.html
32+
33+
The provided configuration in the .devcontainer folder will set up all the required tooling as detailed in the following section automatically.
34+
35+
### Developing without a devcontainer
36+
37+
#### Requirements
2538
* make
2639
* nodejs + npm/yarn
2740
* [poetry](https://github.com/python-poetry/poetry)
2841
* Java 8+
2942

30-
### Install
43+
#### Install
3144
```
3245
$ make install
3346
```
3447

35-
#### Updating hooks
48+
##### Updating hooks
3649
You can install some pre-commit hooks to ensure you can't commit invalid spec changes by accident. These are also run
3750
in CI, but it's useful to run them locally too.
3851

@@ -49,7 +62,7 @@ Various scripts and commands rely on environment variables being set. These are
4962
There are `make` commands that alias some of this functionality:
5063
* `lint` -- Lints the spec and code
5164
* `publish` -- Outputs the specification as a **single file** into the `build/` directory
52-
* `serve` -- Serves a preview of the specification in human-readable format
65+
* `serve` -- Serves a preview of the specification in human-readable format on http://127.0.0.1:5000
5366

5467
### Testing
5568
Each API and team is unique. We encourage you to use a `test/` folder in the root of the project, and use whatever testing frameworks or apps your team feels comfortable with. It is important that the URL your test points to be configurable. We have included some stubs in the Makefile for running tests.

specification/nhs-website-content-api.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,16 @@ info:
88
## Overview
99
This API provides content from the [NHS website](https://www.nhs.uk) as JSON, to be consumed programmatically and used by your application.
1010
11+
⚠️ Historically, many pages describing conditions or tests were inappropriately allocated to the Conditions A to Z.
12+
13+
The April 2025 update introduces two new endpoints for 'symptoms' and 'testandtreatments' that reflect the reallocation of these
14+
pages to new hub pages in the website.
15+
1116
You can reuse the content from the following sections of the NHS website:
12-
* Health A to Z / Conditions ([Website](https://www.nhs.uk/conditions/) | [API](https://digital.nhs.uk/developer/api-catalogue/nhs-website-content/v2#get-/conditions))
17+
* Conditions A to Z / Conditions ([Website](https://www.nhs.uk/conditions/) | [API](https://digital.nhs.uk/developer/api-catalogue/nhs-website-content/v2#get-/conditions))
1318
* Medicines A to Z ([Website](https://www.nhs.uk/medicines/) | [API](https://digital.nhs.uk/developer/api-catalogue/nhs-website-content/v2#get-/medicines))
19+
* Symptoms A to Z ([Website](https://www.nhs.uk/symptoms/) | [API](https://digital.nhs.uk/developer/api-catalogue/nhs-website-content/v2#get-/symptoms))
20+
* Tests and treatments A to Z ([Website](https://www.nhs.uk/testsandtreatments/) | [API](https://digital.nhs.uk/developer/api-catalogue/nhs-website-content/v2#get-/testsandtreatments))
1421
* Mental health ([Website](https://www.nhs.uk/mental-health/) | [API](https://digital.nhs.uk/developer/api-catalogue/nhs-website-content/v2#get-/mental-health))
1522
* Live Well ([Website](https://www.nhs.uk/live-well/) | [API](https://digital.nhs.uk/developer/api-catalogue/nhs-website-content/v2#get-/live-well))
1623
* Pregnancy ([Website](https://www.nhs.uk/pregnancy/) | [API](https://digital.nhs.uk/developer/api-catalogue/nhs-website-content/v2#get-/pregnancy))
@@ -25,6 +32,13 @@ info:
2532
2633
If you are migrating from our [old NHS website APIs](https://developer.api.nhs.uk/nhs-api), we have a [migration guide](https://developer.api.nhs.uk/support/migration/guide) to help walk you through the process and a [migration assistant](https://developer.api.nhs.uk/support/migration/assistant) to illustrate the differences in how your API requests will need to be updated.
2734
35+
## Updates
36+
37+
| Version | Date | Changes |
38+
|------------|-----|--------------|
39+
| 2.2.0 | April 2025 | Introduce `symptoms` and `testsandtreatments` endpoints |
40+
41+
2842
## Who can use this API
2943
Anyone can use this API for any purpose, so long as they have agreed to the [Online connection agreement](https://digital.nhs.uk/developer/guides-and-documentation/online-connection-agreement) during the [onboarding process](https://digital.nhs.uk/developer/guides-and-documentation/onboarding-process) and they include an [attribution](#overview--attribution) as outlined below.
3044

0 commit comments

Comments
 (0)