Skip to content

Commit 88201cf

Browse files
adrianparrigba1980
andauthored
Sandbox (#35)
* Updated package.lock file * WIP * Init basic routes * Added more responses * Added more responses * Added more responses and formatted JSON * Added more responses * Added two more * Checking for ‘subscription-key’ * Catching 404 errors * Added more responses * Added Acne with modules=true * Tidy up * WIP * Added more endpoints * More endpoints * Fixed query params * More endpoints * Added a markdown file with localhost links * Added comments for Apigee Int and Prod environments * Adding in the ‘sandbox’ environment * Updated URLs --------- Co-authored-by: Igba ujege <iujege@gmail.com>
1 parent d8129f7 commit 88201cf

26 files changed

Lines changed: 757 additions & 725 deletions

sandbox/handlers.js

Lines changed: 99 additions & 99 deletions
Large diffs are not rendered by default.

sandbox/responses/conditions-acanthosis-nigricans-no-params.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"about": { "@type": "WebPage", "name": "Acanthosis nigricans", "alternateName": "" },
1515
"description": "Acanthosis nigricans is the term for darkened, thickened patches of skin in the armpit and around the groin and neck. Find out about the main causes and treatments.",
16-
"url": "https://api.nhs.uk/conditions/acanthosis-nigricans/",
16+
"url": "https://api.service.nhs.uk/nhs-website-content/conditions/acanthosis-nigricans/",
1717
"genre": ["Condition"],
1818
"keywords": [],
1919
"dateModified": "2021-11-30T15:42:29+00:00",
@@ -25,13 +25,13 @@
2525
{
2626
"@type": "ListItem",
2727
"position": 0,
28-
"item": { "@id": "https://api.nhs.uk/conditions/", "name": "Health A to Z", "genre": [] }
28+
"item": { "@id": "https://api.service.nhs.uk/nhs-website-content/conditions/", "name": "Health A to Z", "genre": [] }
2929
},
3030
{
3131
"@type": "ListItem",
3232
"position": 1,
3333
"item": {
34-
"@id": "https://api.nhs.uk/conditions/acanthosis-nigricans/",
34+
"@id": "https://api.service.nhs.uk/nhs-website-content/conditions/acanthosis-nigricans/",
3535
"name": "Acanthosis nigricans",
3636
"genre": ["Condition"]
3737
}
@@ -42,7 +42,7 @@
4242
"relatedLink": [
4343
{
4444
"@type": "LinkRole",
45-
"url": "https://api.nhs.uk/conditions/acanthosis-nigricans/",
45+
"url": "https://api.service.nhs.uk/nhs-website-content/conditions/acanthosis-nigricans/",
4646
"linkRelationship": "Navigation",
4747
"position": 0,
4848
"name": "Acanthosis nigricans"
@@ -259,7 +259,7 @@
259259
{
260260
"position": 0,
261261
"identifier": "1",
262-
"text": "<p>The most common cause of acanthosis nigricans is being <a href=\"https://api.nhs.uk/conditions/obesity/\">very overweight</a>.</p><p>Other causes include:</p><ul><li><a href=\"https://api.nhs.uk/conditions/type-2-diabetes/\">type 2 diabetes</a></li><li>conditions that affect hormone levels \u2013 such as <a href=\"https://api.nhs.uk/conditions/cushings-syndrome/\">Cushing's syndrome</a>, <a href=\"https://api.nhs.uk/conditions/polycystic-ovary-syndrome-pcos/\">polycystic ovary syndrome</a> or an <a href=\"https://api.nhs.uk/conditions/underactive-thyroid-hypothyroidism/\">underactive thyroid</a></li><li>taking certain medicines \u2013 including <a href=\"https://api.nhs.uk/conditions/steroids/\">steroids</a> or hormone treatments like the contraceptive pill</li><li>rarely, cancer \u2013 usually <a href=\"https://api.nhs.uk/conditions/stomach-cancer/\">stomach cancer</a></li><li>rarely, a faulty gene inherited from your parents</li></ul><p>Sometimes healthy people with no other conditions get acanthosis nigricans. This is more common in people with black or brown skin.</p>",
262+
"text": "<p>The most common cause of acanthosis nigricans is being <a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/obesity/\">very overweight</a>.</p><p>Other causes include:</p><ul><li><a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/type-2-diabetes/\">type 2 diabetes</a></li><li>conditions that affect hormone levels \u2013 such as <a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/cushings-syndrome/\">Cushing's syndrome</a>, <a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/polycystic-ovary-syndrome-pcos/\">polycystic ovary syndrome</a> or an <a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/underactive-thyroid-hypothyroidism/\">underactive thyroid</a></li><li>taking certain medicines \u2013 including <a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/steroids/\">steroids</a> or hormone treatments like the contraceptive pill</li><li>rarely, cancer \u2013 usually <a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/stomach-cancer/\">stomach cancer</a></li><li>rarely, a faulty gene inherited from your parents</li></ul><p>Sometimes healthy people with no other conditions get acanthosis nigricans. This is more common in people with black or brown skin.</p>",
263263
"@type": "WebPageElement",
264264
"name": "markdown",
265265
"headline": ""
@@ -270,7 +270,7 @@
270270
{
271271
"position": 0,
272272
"identifier": "1",
273-
"text": "<p>The most common cause of acanthosis nigricans is being <a href=\"https://api.nhs.uk/conditions/obesity/\">very overweight</a>.</p><p>Other causes include:</p><ul><li><a href=\"https://api.nhs.uk/conditions/type-2-diabetes/\">type 2 diabetes</a></li><li>conditions that affect hormone levels \u2013 such as <a href=\"https://api.nhs.uk/conditions/cushings-syndrome/\">Cushing's syndrome</a>, <a href=\"https://api.nhs.uk/conditions/polycystic-ovary-syndrome-pcos/\">polycystic ovary syndrome</a> or an <a href=\"https://api.nhs.uk/conditions/underactive-thyroid-hypothyroidism/\">underactive thyroid</a></li><li>taking certain medicines \u2013 including <a href=\"https://api.nhs.uk/conditions/steroids/\">steroids</a> or hormone treatments like the contraceptive pill</li><li>rarely, cancer \u2013 usually <a href=\"https://api.nhs.uk/conditions/stomach-cancer/\">stomach cancer</a></li><li>rarely, a faulty gene inherited from your parents</li></ul><p>Sometimes healthy people with no other conditions get acanthosis nigricans. This is more common in people with black or brown skin.</p>",
273+
"text": "<p>The most common cause of acanthosis nigricans is being <a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/obesity/\">very overweight</a>.</p><p>Other causes include:</p><ul><li><a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/type-2-diabetes/\">type 2 diabetes</a></li><li>conditions that affect hormone levels \u2013 such as <a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/cushings-syndrome/\">Cushing's syndrome</a>, <a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/polycystic-ovary-syndrome-pcos/\">polycystic ovary syndrome</a> or an <a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/underactive-thyroid-hypothyroidism/\">underactive thyroid</a></li><li>taking certain medicines \u2013 including <a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/steroids/\">steroids</a> or hormone treatments like the contraceptive pill</li><li>rarely, cancer \u2013 usually <a href=\"https://api.service.nhs.uk/nhs-website-content/conditions/stomach-cancer/\">stomach cancer</a></li><li>rarely, a faulty gene inherited from your parents</li></ul><p>Sometimes healthy people with no other conditions get acanthosis nigricans. This is more common in people with black or brown skin.</p>",
274274
"@type": "WebPageElement",
275275
"name": "markdown",
276276
"headline": ""

0 commit comments

Comments
 (0)