Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions sandbox/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,22 @@ app.all('/symptoms/', handlers.symptomsRoot)
// ******************************************************************
app.all('/tests-and-treatments/', handlers.testsAndTreatmentsRoot)

// ******************************************************************
// ** Health A to Z
// ******************************************************************
app.all('/health-a-to-z/', handlers.healthAToZRoot)
app.all('/health-a-to-z/common-topics/', handlers.healthAToZCommonTopics)
Comment thread
pflynny marked this conversation as resolved.
Outdated

// ******************************************************************
// ** Baby
// ******************************************************************
app.all('/baby/', handlers.babyRoot)

// ******************************************************************
// ** Social care and support
// ******************************************************************
app.all('/social-care-and-support/', handlers.socialCareAndSupportRoot)
Comment thread
pflynny marked this conversation as resolved.

app.use((req, res, next) => {
res.status(404).json(errorResourceNotFoundResponse)
})
Expand Down
Comment thread
pflynny marked this conversation as resolved.
Comment thread
mcheung-nhs marked this conversation as resolved.
Empty file.
81 changes: 81 additions & 0 deletions sandbox/responses/baby-first-aid-and-safety-no-params.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"@context": "http://schema.org",
"@type": "MedicalWebPage",
"name": "First aid and safety",
"copyrightHolder": {
"name": "Crown Copyright",
"@type": "Organization"
},
"license": "https://developer.api.nhs.uk/terms",
"author": {
"url": "https://www.nhs.uk",
"logo": "https://assets.nhs.uk/nhsuk-cms/images/nhs-attribution.width-510.png",
"email": "nhswebsite.servicedesk@nhs.net",
"@type": "Organization",
"name": "NHS website"
},
"about": {
"@type": "WebPage",
"name": "First aid and safety",
"alternateName": ""
},
"description": "What do if your child has an accident and the latest safety advice.",
"url": "https://api.service.nhs.uk/baby/first-aid-and-safety/",
"genre": [],
"keywords": "",
"dateModified": "2021-11-18T16:12:32+00:00",
"hasPart": [],
"breadcrumb": {
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 0,
"item": {
"@id": "https://api.service.nhs.uk/baby/",
"name": "Baby",
"genre": []
}
},
{
"@type": "ListItem",
"position": 1,
"item": {
"@id": "https://api.service.nhs.uk/baby/first-aid-and-safety/",
"name": "First aid and safety",
"genre": []
}
}
]
},
"headline": "First aid and safety",
"contentSubTypes": [],
"mainEntityOfPage": [
{
"identifier": "24",
"@type": "WebPageElement",
"name": "canonicallinks",
"headline": "",
"text": "",
"mainEntityOfPage": [
{
"@type": "WebPageElement",
"headline": "First aid",
"url": "https://api.service.nhs.uk/baby/first-aid-and-safety/first-aid/",
"identifier": "26",
"text": "<p>Learn how to stop a baby choking and what to do if they have an accident</p>",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Safety",
"url": "https://api.service.nhs.uk/baby/first-aid-and-safety/safety/",
"identifier": "26",
"text": "<p>The latest safety advice including tips on buying car seats and sun safety</p>",
"name": "link"
}
]
}
]
}
128 changes: 128 additions & 0 deletions sandbox/responses/baby-root-no-params.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"@context": "http://schema.org",
"@type": "MedicalWebPage",
"name": "Baby",
"copyrightHolder": {
"name": "Crown Copyright",
"@type": "Organization"
},
"license": "https://developer.api.nhs.uk/terms",
"author": {
"url": "https://www.nhs.uk",
"logo": "https://assets.nhs.uk/nhsuk-cms/images/nhs-attribution.width-510.png",
"email": "nhswebsite.servicedesk@nhs.net",
"@type": "Organization",
"name": "NHS website"
},
"about": {
"@type": "WebPage",
"name": "Baby",
"alternateName": ""
},
"description": "This guide includes everything you need to know about caring for a baby.",
"url": "https://api.service.nhs.uk/baby/",
"genre": [],
"keywords": "",
"dateModified": "2025-04-16T12:30:54+00:00",
"hasPart": [],
"breadcrumb": {
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 0,
"item": {
"@id": "https://api.service.nhs.uk/baby/",
"name": "Baby",
"genre": []
}
}
]
},
"headline": "Baby",
"contentSubTypes": [],
"mainEntityOfPage": [
{
"identifier": "24",
"@type": "WebPageElement",
"name": "canonicallinks",
"headline": "",
"text": "",
"mainEntityOfPage": [
{
"@type": "WebPageElement",
"headline": "Caring for a newborn baby",
"url": "https://api.service.nhs.uk/baby/caring-for-a-newborn/",
"identifier": "26",
"text": "<p>How to look after a newborn baby in those first few days (0 to 12 weeks)</p>",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Support and services",
"url": "https://api.service.nhs.uk/baby/support-and-services/",
"identifier": "26",
"text": "<p>How to keep well after having a baby and where to get support</p>",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Breastfeeding and bottle feeding advice",
"url": "https://api.service.nhs.uk/baby/breastfeeding-and-bottle-feeding/",
"identifier": "26",
"text": "<p>How to breastfeed and bottle feed</p>",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Newborn screening",
"url": "https://api.service.nhs.uk/baby/newborn-screening/",
"identifier": "26",
"text": "<p>Find out what screening tests your newborn baby will be offered</p>",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Newborn twins and multiples",
"url": "https://api.service.nhs.uk/baby/newborn-twins-and-multiples/",
"identifier": "26",
"text": "<p>Help with raising newborn twins and multiples including feeding advice</p>",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Health",
"url": "https://api.service.nhs.uk/baby/health/",
"identifier": "26",
"text": "<p>What to do if your child needs medical help and vaccination guidance</p>",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "First aid and safety",
"url": "https://api.service.nhs.uk/baby/first-aid-and-safety/",
"identifier": "26",
"text": "<p>What do if your child has an accident and the latest safety advice</p>",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Baby's development",
"url": "https://api.service.nhs.uk/baby/babys-development/",
"identifier": "26",
"text": "<p>Read about baby reviews, teething, potty training, learning and behaviour</p>",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Weaning and feeding",
"url": "https://api.service.nhs.uk/baby/weaning-and-feeding/",
"identifier": "26",
"text": "<p>How to move on to solid foods and drinks, meal ideas and food safety</p>",
"name": "link"
}
]
}
]
}
153 changes: 153 additions & 0 deletions sandbox/responses/baby-support-and-service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
{
"@context": "http://schema.org",
"@type": "MedicalWebPage",
"name": "Support and services",
"copyrightHolder": {
"name": "Crown Copyright",
"@type": "Organization"
},
"license": "https://developer.api.nhs.uk/terms",
"author": {
"url": "https://www.nhs.uk",
"logo": "https://assets.nhs.uk/nhsuk-cms/images/nhs-attribution.width-510.png",
"email": "nhswebsite.servicedesk@nhs.net",
"@type": "Organization",
"name": "NHS website"
},
"about": {
"@type": "WebPage",
"name": "Support and services",
"alternateName": ""
},
"description": "How to keep well after having a baby and where to get support.",
"url": "https://api.service.nhs.uk/baby/support-and-services/",
"genre": [],
"keywords": "",
"dateModified": "2021-11-18T16:12:29+00:00",
"hasPart": [],
"breadcrumb": {
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 0,
"item": {
"@id": "https://api.service.nhs.uk/baby/",
"name": "Baby",
"genre": []
}
},
{
"@type": "ListItem",
"position": 1,
"item": {
"@id": "https://api.service.nhs.uk/baby/support-and-services/",
"name": "Support and services",
"genre": []
}
}
]
},
"headline": "Support and services",
"contentSubTypes": [],
"mainEntityOfPage": [
{
"identifier": "25",
"@type": "WebPageElement",
"name": "keylinks",
"headline": "",
"text": "",
"mainEntityOfPage": [
{
"@type": "WebPageElement",
"headline": "Services and support for parents",
"url": "https://api.service.nhs.uk/baby/support-and-services/services-and-support-for-parents/",
"identifier": "26",
"text": "",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Tips for new parents",
"url": "https://api.service.nhs.uk/baby/support-and-services/tips-for-new-parents/",
"identifier": "26",
"text": "",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Your 6-week postnatal check",
"url": "https://api.service.nhs.uk/baby/support-and-services/your-6-week-postnatal-check/",
"identifier": "26",
"text": "",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Your post-pregnancy body",
"url": "https://api.service.nhs.uk/baby/support-and-services/your-post-pregnancy-body/",
"identifier": "26",
"text": "",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Keeping fit and healthy with a baby",
"url": "https://api.service.nhs.uk/baby/support-and-services/keeping-fit-and-healthy-with-a-baby/",
"identifier": "26",
"text": "",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Coping with stress after having a baby",
"url": "https://api.service.nhs.uk/baby/support-and-services/coping-with-stress-after-having-a-baby/",
"identifier": "26",
"text": "",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Feeling depressed after childbirth",
"url": "https://api.service.nhs.uk/baby/support-and-services/feeling-depressed-after-childbirth/",
"identifier": "26",
"text": "",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Sleep and tiredness after having a baby",
"url": "https://api.service.nhs.uk/baby/support-and-services/sleep-and-tiredness-after-having-a-baby/",
"identifier": "26",
"text": "",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Sex and contraception after birth",
"url": "https://api.service.nhs.uk/baby/support-and-services/sex-and-contraception-after-birth/",
"identifier": "26",
"text": "",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Advice for single parents",
"url": "https://api.service.nhs.uk/baby/support-and-services/advice-for-single-parents/",
"identifier": "26",
"text": "",
"name": "link"
},
{
"@type": "WebPageElement",
"headline": "Relationships after having a baby",
"url": "https://api.service.nhs.uk/baby/support-and-services/relationships-after-having-a-baby/",
"identifier": "26",
"text": "",
"name": "link"
}
]
}
]
}
Loading
Loading