UKHSA-Internal/coronavirus-dashboard

A bug occurs when running the example code in format section

Opened this issue · 0 comments

Describe the bug
A bug occurs when running the example code in format section because 'latestBy' parameter can only be used when 'format=json' or 'format=xml'.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to Developers guide
  2. Scroll down to 'format'
  3. Run the example code of format
  4. See error

Expected behaviour
Return json, xml and csv

Screenshots
screenshot of example in format

screenshot of example code in format

Additional context
Removing "latestBy": "cumCasesByPublishDate" on line 25 fixed the problem.