Question: @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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!