Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

@Controller public class UKHSAController{ @Autowired UKHSAService hsaService; /* * * GET /UKHSA/covid19/api/Omicron/7 * See Appendix C (b) for the response in JSON * * Return

@Controller public class UKHSAController{

@Autowired UKHSAService hsaService;

/* * * GET /UKHSA/covid19/api/Omicron/7 * See Appendix C (b) for the response in JSON * * Return confirmed COVID19 cases with a specific variant X in the past Y days in JSON * format. For example, the request below returns a list of anonymised confirmed cases * infected with the latest "Omicron" variant over the past 7 days. */

[...] public [...] getCovidCasesJSON([...]) { [...]

//Question 2 f(i)

: complete the code here }

/* * GET /UKHSA/covid19/Omicron/report?variant=Omicron * */

@RequestMapping(value = /UKHSA/covid19/report/)

public ModelAndView viewCovidReport() { List cases= hsaService.getAllCasesByVariant(variant) ;

return new ModelAndView("report","data",cases); } }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Define T: M2,2 R by Find the pre-image T-1 (3). 0

Answered: 1 week ago